From 3af1ac0986d0b7cf4063794be8c375ea9a90a770 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 25 Oct 2010 12:57:32 +0200 Subject: [PATCH] Fix clean up code path in _usb_bulk_write_async (uninitialized memory) --- src/ftdi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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++) { -- 1.7.1