Browse Source

usbutils.c remove compiler warning

Kano 13 years ago
parent
commit
3a91d8eb61
1 changed files with 1 additions and 0 deletions
  1. 1 0
      usbutils.c

+ 1 - 0
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);