Windows: Fix erroneous pointer array allocation reported by Clang
authorPete Batard <pete@akeo.ie>
Wed, 13 Jun 2012 12:38:46 +0000 (13:38 +0100)
committerPete Batard <pete@akeo.ie>
Wed, 13 Jun 2012 19:52:39 +0000 (20:52 +0100)
commit67df11b691b7cdade54cbc265f9d975d46dcc10c
treea5d8c74a483cbbb8630b9aaa3644b89eddc5cf1e
parent21ce67310216dd1173a582b584399bf6096965ea
Windows: Fix erroneous pointer array allocation reported by Clang

* Result of 'calloc' is converted to a pointer of type 'unsigned char *',
  which is incompatible with sizeof operand type 'PUSB_CONFIGURATION_DESCRIPTOR'
* priv->config_descriptor is indeed an array of pointers, with each descriptor
  allocated, rather than a sequential list of fixed descriptor.
libusb/os/windows_usb.c
libusb/version_nano.h