diff options
Diffstat (limited to 'daemon/usb-linux.c')
-rw-r--r-- | daemon/usb-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/usb-linux.c b/daemon/usb-linux.c index c9420c8..0860b46 100644 --- a/daemon/usb-linux.c +++ b/daemon/usb-linux.c @@ -322,6 +322,7 @@ int usb_discover(void) struct usb_device *usbdev; usbdev = malloc(sizeof(struct usb_device)); + memset(usbdev, 0, sizeof(*usbdev)); for(j=0; j<config->bNumInterfaces; j++) { const struct libusb_interface_descriptor *intf = &config->interface[j].altsetting[0]; |