summaryrefslogtreecommitdiffstats
path: root/model.c
diff options
context:
space:
mode:
Diffstat (limited to 'model.c')
-rw-r--r--model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/model.c b/model.c
index 539f774..02a6f0c 100644
--- a/model.c
+++ b/model.c
@@ -188,7 +188,7 @@ const pcilib_model_description_t *pcilib_get_event_model(pcilib_t *pcilib, unsig
return ipecamera_models;
}
- if ((vendor_id != 0x10ee)&&((!model)||(strcasecmp(model, "ipecamera"))))
+ if ((vendor_id != 0x10ee)||((model)&&(strcasecmp(model, "ipecamera"))))
return NULL;
return &ipecamera_models[0];