diff --git a/usbutils.c b/usbutils.c index 36beb303..cc769378 100644 --- a/usbutils.c +++ b/usbutils.c @@ -1133,6 +1133,7 @@ int _usb_read(struct cgpu_info *cgpu, int ep, char *buf, size_t bufsiz, int *pro } tot = 0; + err = LIBUSB_SUCCESS; while (bufsiz) { got = 0; STATS_TIMEVAL(&tv_start);