summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2011-05-10 19:26:31 +0100
committerPete Batard <pbatard@gmail.com>2011-05-10 19:26:31 +0100
commit004708125547f550092489887974378b2859e8e7 (patch)
tree30e5c91e45ecf9ab58e3b1b19109bf5bd0d7da33
parente4eeafff4f92cd160cf37b3857bcc22c8f32218a (diff)
downloadlibusb-004708125547f550092489887974378b2859e8e7.tar.gz
[MinGW] fixed warning about dev_info
* MinGW wrongly complains that dev_info may be used uninitialized in windows_get_device_list()
-rw-r--r--libusb/os/windows_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c
index d34812b..bea4d3c 100644
--- a/libusb/os/windows_usb.c
+++ b/libusb/os/windows_usb.c
@@ -1207,7 +1207,7 @@ static int set_composite_interface(struct libusb_context* ctx, struct libusb_dev
static int windows_get_device_list(struct libusb_context *ctx, struct discovered_devs **_discdevs)
{
struct discovered_devs *discdevs = *_discdevs;
- HDEVINFO dev_info;
+ HDEVINFO dev_info = { 0 };
SP_DEVINFO_DATA dev_info_data;
SP_DEVICE_INTERFACE_DETAIL_DATA_A *dev_interface_details = NULL;
#define MAX_ENUM_GUIDS 64