From e6902b2b0f546d5a39e82b38510f2135fc040ee3 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 21 May 2014 10:15:50 -0400 Subject: Fixed clang static analyzer warning about dereferencing null 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 --- libusb/os/darwin_usb.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index dd5bbc5..19174b1 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -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; } } diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 41df46b..8c4063a 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10902 +#define LIBUSB_NANO 10903 -- cgit v1.2.3