diff options
Diffstat (limited to 'dediprog.c')
-rw-r--r-- | dediprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |