X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fvictor-dmm%2Fapi.c;h=d415a3f9cc86c4809db8dd44898a1c222dec3d19;hb=d9a3c0b749042279cdc48208ebf802abad028b2b;hp=6a9b774fc98d6988a8e4b2f0083585cdd9a1e170;hpb=95c1fe62f77d347bf173b1236c38a9043efabd2b;p=libsigrok.git diff --git a/src/hardware/victor-dmm/api.c b/src/hardware/victor-dmm/api.c index 6a9b774f..d415a3f9 100644 --- a/src/hardware/victor-dmm/api.c +++ b/src/hardware/victor-dmm/api.c @@ -69,7 +69,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) if (des.idVendor != VICTOR_VID || des.idProduct != VICTOR_PID) 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->status = SR_ST_INACTIVE;