summaryrefslogtreecommitdiff
path: root/libusb/core.c
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2012-06-28 22:49:47 +0100
committerPete Batard <pete@akeo.ie>2012-07-02 18:29:27 +0100
commit63f569be66a40a720bb797a87c3589f3e4de925a (patch)
treede87a88aeaef653a724a1843c566d4b2333ca607 /libusb/core.c
parent0e0cbb6c27efa5a2ae58c30267a4be9486c766cc (diff)
downloadlibusbx-63f569be66a40a720bb797a87c3589f3e4de925a.tar.gz
Misc: Fix more Clang warnings in core and darwin
* http://sourceforge.net/mailarchive/message.php?msg_id=29418038 * core.c:700:4: warning: Function call argument is an uninitialized value * darwin_usb.c:1713:11: warning: Access to field 'cfSource' results in a dereference of a null pointer (loaded from variable 'hpriv') * sync.c/dpfp.c/dpfp_threaded.c: warning: Result of 'malloc' is converted to a pointer of type 'unsigned char', which is incompatible with sizeof operand type
Diffstat (limited to 'libusb/core.c')
-rw-r--r--libusb/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 82cf782..8845909 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -683,7 +683,7 @@ int API_EXPORTED libusb_get_port_path(libusb_context *ctx, libusb_device *dev, u
{
int i = path_len;
ssize_t r;
- struct libusb_device **devs;
+ struct libusb_device **devs = NULL;
/* The device needs to be open, else the parents may have been destroyed */
r = libusb_get_device_list(ctx, &devs);