summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2012-04-07 03:55:36 +0200
committerPete Batard <pete@akeo.ie>2012-04-09 22:29:41 +0100
commit5b7d1c57f8dea7d6090d7478e4f39075c17decdb (patch)
treeb721f9f437f165463931127d09381f6ced61062c /examples
parent974251ba94861d03dbe9837a902d84e83d301cda (diff)
downloadlibusb-5b7d1c57f8dea7d6090d7478e4f39075c17decdb.tar.gz
OpenBSD: Fix warning: 'hpriv' may be used uninitialized
As reported in http://marc.info/?m=133376187514495 The variable would be used uninitialized when the internal list of open devices is empty as obsd_handle_events() checks which device the event fd belongs to, which can not actually happen, but if it ever does happen then we will now return LIBUSB_ERROR_NO_DEVICE. Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions