Core: Avoid passing uninitialised data down the hotplug pipe.
authorToby Gray <toby.gray@realvnc.com>
Wed, 26 Jun 2013 15:26:39 +0000 (16:26 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 26 Jun 2013 15:29:36 +0000 (17:29 +0200)
commit004c7a7fabb1c1f1ded97c776291c4a645941d99
tree1a3e829bc4c22c8331fddd28580a05dfeae0640c
parent83c9c3cb73bb9af710c6f8e068d0af8b7206df08
Core: Avoid passing uninitialised data down the hotplug pipe.

Due to alignment requirements, libusb_hotplug_message might have
some padding bytes.

This change makes sure that these padding bytes are
initialised. Valgrind no longer complains about passing uninitialised
data to the write system call.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/core.c
libusb/version_nano.h