From: Thomas Jarosch Date: Mon, 25 Oct 2010 10:57:32 +0000 (+0200) Subject: Fix clean up code path in _usb_bulk_write_async (uninitialized memory) X-Git-Tag: v0.19~12 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=3af1ac0986d0b7cf4063794be8c375ea9a90a770 Fix clean up code path in _usb_bulk_write_async (uninitialized memory) --- diff --git a/src/ftdi.c b/src/ftdi.c index 06f6293..9cf425f 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -1407,6 +1407,7 @@ static int _usb_bulk_write_async(struct ftdi_context *ftdi, int ep, char *bytes, do { /* find a free urb buffer we can use */ + i = 0; urb=NULL; for (cleanup_count=0; urb==NULL && cleanup_count <= 1; cleanup_count++) {