From 69a2ec680163cf1dc494dfccdd8c28db07ee9115 Mon Sep 17 00:00:00 2001 From: Gerhard Jaeger Date: Fri, 22 Feb 2013 09:07:32 +0100 Subject: [PATCH] Fix another bug in the libusb1 part of functioin check_libusb_device() that prevents sanner detection for certain devices. --- tools/sane-find-scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sane-find-scanner.c b/tools/sane-find-scanner.c index bd3c3a4a5..fde0abeb1 100644 --- a/tools/sane-find-scanner.c +++ b/tools/sane-find-scanner.c @@ -1046,7 +1046,7 @@ check_libusb_device (libusb_device *dev, SANE_Bool from_file) break; case USB_CLASS_PER_INTERFACE: if ((config0->interface[intf].num_altsetting == 0) - || config0->interface[intf].altsetting) + || !config0->interface[intf].altsetting) break; switch (config0->interface[intf].altsetting[0].bInterfaceClass) {