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>
This commit is contained in:
Sean McBride
2014-05-21 10:15:50 -04:00
committed by Nathan Hjelm
parent 7dfdf8e1b1
commit e6902b2b0f
2 changed files with 2 additions and 2 deletions
+1 -1
View 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;
}
}
+1 -1
View File
@@ -1 +1 @@
#define LIBUSB_NANO 10902
#define LIBUSB_NANO 10903