Fix clean up code path in _usb_bulk_write_async (uninitialized memory)
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 25 Oct 2010 10:57:32 +0000 (12:57 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 25 Oct 2010 10:57:32 +0000 (12:57 +0200)
src/ftdi.c

index 06f6293..9cf425f 100644 (file)
@@ -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++)
         {