diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-04-28 21:40:48 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-04-28 21:40:48 +0200 |
commit | b44c763039a5ca01efd6d5ef19fb941e2996554e (patch) | |
tree | b46e463398c8c36c2b1187b5febae123e2f6a8dd | |
parent | 5a85d83e3e099c5781c205b62fecd25474f0985a (diff) | |
download | ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.tar.gz ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.tar.bz2 ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.tar.xz ipecamera-b44c763039a5ca01efd6d5ef19fb941e2996554e.zip |
Properly check for requested model
-rw-r--r-- | model.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |