summaryrefslogtreecommitdiffstats
path: root/dediprog.c
diff options
context:
space:
mode:
Diffstat (limited to 'dediprog.c')
-rw-r--r--dediprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dediprog.c b/dediprog.c
index 519a8b0d6..e5bf84e39 100644
--- a/dediprog.c
+++ b/dediprog.c
@@ -1206,8 +1206,8 @@ static int dediprog_init(void)
dp_data->devicetype = DEV_UNKNOWN;
/* Here comes the USB stuff. */
- libusb_init(&dp_data->usb_ctx);
- if (!dp_data->usb_ctx) {
+ ret = libusb_init(&dp_data->usb_ctx);
+ if (ret) {
msg_perr("Could not initialize libusb!\n");
goto init_err_exit;
}