fix description strings without serial
authorGerd v. Egidy <gerd.von.egidy@intra2net.com>
Sat, 12 Dec 2009 23:48:49 +0000 (00:48 +0100)
committerGerd v. Egidy <gerd.von.egidy@intra2net.com>
Sat, 12 Dec 2009 23:48:49 +0000 (00:48 +0100)
src/ftdi.c

index 8c0862c..4a2e3f7 100644 (file)
@@ -741,7 +741,7 @@ int ftdi_usb_open_string(struct ftdi_context *ftdi, const char* description)
         unsigned int vendor;
         unsigned int product;
         unsigned int index=0;
-        const char *serial;
+        const char *serial=NULL;
         const char *startp, *endp;
 
         errno=0;