mirror of
https://github.com/RPCS3/libusb.git
synced 2026-01-31 01:25:19 +01:00
WinCE: Fixed incorrect check of return value, found by cppcheck
cppcheck was warning: nullPointerRedundantCheck,libusb/os/wince_usb.c:280,warning,Either the condition '!discdevs' is redundant or there is possible null pointer dereference: discdevs. In fact, the issue was just checking the wrong thing. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
committed by
Chris Dickens
parent
0b3d4c68d8
commit
96b89f90d3
@@ -329,7 +329,7 @@ static int wince_get_device_list(
|
||||
}
|
||||
|
||||
new_devices = discovered_devs_append(new_devices, dev);
|
||||
if (!discdevs) {
|
||||
if (!new_devices) {
|
||||
r = LIBUSB_ERROR_NO_MEM;
|
||||
goto err_out;
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11239
|
||||
#define LIBUSB_NANO 11240
|
||||
|
||||
Reference in New Issue
Block a user