Fixed clang static analyzer warning about dereferencing null
authorSean McBride <sean@rogue-research.com>
Wed, 21 May 2014 14:15:50 +0000 (10:15 -0400)
committerNathan Hjelm <hjelmn@me.com>
Wed, 11 Jun 2014 00:59:30 +0000 (18:59 -0600)
It looks like *ifcp should be the same as iface,
so I just use the latter instead of the former.

Closes pull request #13

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/darwin_usb.c
libusb/version_nano.h

index dd5bbc5..19174b1 100644 (file)
@@ -175,7 +175,7 @@ static int ep_to_pipeRef(struct libusb_device_handle *dev_handle, uint8_t ep, ui
           if (interface_out)
             *interface_out = cInterface;
 
-          usbi_dbg ("pipe %d on interface %d matches", *pipep, *ifcp);
+          usbi_dbg ("pipe %d on interface %d matches", *pipep, iface);
           return 0;
         }
       }
index 41df46b..8c4063a 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10902
+#define LIBUSB_NANO 10903