examples: check the value returned by libusb_init()
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Sun, 22 Sep 2013 19:15:56 +0000 (21:15 +0200)
committerLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Sat, 28 Sep 2013 10:14:13 +0000 (12:14 +0200)
commitaa00030b78b4e46511c32c76c08ea031eacef8d1
tree013520cfef40999bc903c097ed782712079933a3
parentd09389be6f91f5e6a382a90f68916e8ee7444a60
examples: check the value returned by libusb_init()

Problem detected by the Coverity tool
CID 1042538 (#1 of 1): Unchecked return value (CHECKED_RETURN)4.
check_return: Calling function "libusb_init(libusb_context **)" without
checking return value (as is done elsewhere 11 out of 12 times).
examples/hotplugtest.c
libusb/version_nano.h