summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-28 21:40:48 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-28 21:40:48 +0200
commitb44c763039a5ca01efd6d5ef19fb941e2996554e (patch)
treeb46e463398c8c36c2b1187b5febae123e2f6a8dd
parent5a85d83e3e099c5781c205b62fecd25474f0985a (diff)
downloadipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.tar.gz
ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.tar.bz2
ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.tar.xz
ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.zip
Properly check for requested model
-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];