]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/chronovu-la/api.c
uni-t-ut181a: silence compiler warning, use of uninitialized variable
[libsigrok.git] / src / hardware / chronovu-la / api.c
index fb35879fb3e000f690ce27cbfe2fc0d35e2b01ed..694bd54ac84fb91f0f864cefa67d9d31eb2a641c 100644 (file)
@@ -194,7 +194,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
 
                libusb_close(hdl);
 
-               usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
+               if (usb_get_port_path(devlist[i], connection_id, sizeof(connection_id)) < 0)
+                       continue;
 
                if (!strcmp(product, "ChronoVu LA8"))
                        model = 0;