X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fhantek-4032l%2Fapi.c;h=67dc968dcaea91c423ceb0382607982ffa0f1154;hb=6c1a76d1263403f908ac31271a4fd01792488545;hp=626175f07873dd5daa99a23ca881edb72f21c262;hpb=7bbe5a2b6a3cea7bc5b59ca3c34ed4f6fcf8c3b1;p=libsigrok.git diff --git a/src/hardware/hantek-4032l/api.c b/src/hardware/hantek-4032l/api.c index 626175f0..67dc968d 100644 --- a/src/hardware/hantek-4032l/api.c +++ b/src/hardware/hantek-4032l/api.c @@ -180,7 +180,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) des.idProduct != H4032L_USB_PRODUCT) continue; - 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; sdi = g_malloc0(sizeof(struct sr_dev_inst)); sdi->driver = &hantek_4032l_driver_info;