|
@@ -63,7 +63,7 @@ static enum check_result libztex_checkDevice(struct libusb_device *dev)
|
|
|
struct libusb_device_descriptor desc;
|
|
struct libusb_device_descriptor desc;
|
|
|
int i, ret = CHECK_ERROR, err, cnt;
|
|
int i, ret = CHECK_ERROR, err, cnt;
|
|
|
size_t got_bytes, length;
|
|
size_t got_bytes, length;
|
|
|
- unsigned char buf[64], *fw_buf;
|
|
|
|
|
|
|
+ unsigned char buf[64], *fw_buf = NULL;
|
|
|
char *firmware = "ztex_ufm1_15y1.bin";
|
|
char *firmware = "ztex_ufm1_15y1.bin";
|
|
|
|
|
|
|
|
err = libusb_get_device_descriptor(dev, &desc);
|
|
err = libusb_get_device_descriptor(dev, &desc);
|