diff options
author | Sean McBride <sean@rogue-research.com> | 2014-05-21 10:15:50 -0400 |
---|---|---|
committer | Nathan Hjelm <hjelmn@me.com> | 2014-06-10 18:59:30 -0600 |
commit | e6902b2b0f546d5a39e82b38510f2135fc040ee3 (patch) | |
tree | a30bdf70f29fa3bcaa0b41bd13e44d0fa5b9607a | |
parent | 7dfdf8e1b1ea2b9702d91bb59d2b86ecf895e8ed (diff) | |
download | libusb-e6902b2b0f546d5a39e82b38510f2135fc040ee3.tar.gz |
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 <hjelmn@me.com>
-rw-r--r-- | libusb/os/darwin_usb.c | 2 | ||||
-rw-r--r-- | 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 |