Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/usb_relay_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ It should be called at the end of execution to avoid memory leaks.
int USBRL_API usb_relay_exit(void);

/** Enumerate the USB Relay Devices.
@return Pointer to list of usb_relay_device_info
@return Pointer to list of usb_relay_device_info, NULL if unsuccessful.
Caller should free it with usb_relay_device_free_enumerate
*/
pusb_relay_device_info_t USBRL_API usb_relay_device_enumerate(void);
Expand Down
3 changes: 3 additions & 0 deletions lib/usb_relay_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ pusb_relay_device_info_t USBRL_API usb_relay_device_enumerate(void)
(void*)&ectx,
enumfunc);

if ( ret != 0 )
return NULL;

return (pusb_relay_device_info_t)ectx.head;
}

Expand Down