hantek-6xxx: Fix the device scan to not scan the NULL entry.

This commit is contained in:
Mike Meyer 2016-07-11 11:09:04 -05:00 committed by Uwe Hermann
parent bf85ea2110
commit 0d8a3063e3
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
usb_get_port_path(devlist[i], connection_id, sizeof(connection_id));
prof = NULL;
for (j = 0; j < (int)ARRAY_SIZE(dev_profiles); j++) {
for (j = 0; dev_profiles[j].orig_vid; j++) {
if (des.idVendor == dev_profiles[j].orig_vid
&& des.idProduct == dev_profiles[j].orig_pid) {
/* Device matches the pre-firmware profile. */