xhc-hb04 bogus 'found' message in standalone

when operating standalone with no connected device,
a ctrl-c would result in a misleading 'found' message
This commit is contained in:
Dewey Garrett 2018-03-26 10:01:39 -07:00
parent 110e4fd7e0
commit f192c0840a

View file

@ -832,7 +832,7 @@ int main (int argc,char **argv)
}
} while(dev_handle == NULL && !do_exit);
printf("%s: found XHC-HB04 device\n",modname);
if (dev_handle) printf("%s: found XHC-HB04 device\n",modname);
if (dev_handle) {
if (libusb_kernel_driver_active(dev_handle, 0) == 1) {