X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi_stream.c;h=cf3acf57305124bab4ebcce74451ebf1ac1a4c89;hp=b949999951c711e7c62c4808e383205d7097b12f;hb=2f80efc24176c903d82cea1f084453fd3df9b992;hpb=71ac8745e5d05fe9863a6281c6dd1cb7ece3e74a diff --git a/src/ftdi_stream.c b/src/ftdi_stream.c index b949999..cf3acf5 100644 --- a/src/ftdi_stream.c +++ b/src/ftdi_stream.c @@ -41,6 +41,7 @@ #include #include +#include #include "ftdi.h" @@ -73,7 +74,7 @@ ftdi_readstream_cb(struct libusb_transfer *transfer) uint8_t *ptr = transfer->buffer; int length = transfer->actual_length; int numPackets = (length + packet_size - 1) / packet_size; - int res; + int res = 0; for (i = 0; i < numPackets; i++) {