From: Gerd v. Egidy Date: Sat, 12 Dec 2009 23:48:49 +0000 (+0100) Subject: fix description strings without serial X-Git-Tag: v0.17~9 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=0e6cf62b5320ccdae0a4930cd4bc0b42b37e811d fix description strings without serial --- diff --git a/src/ftdi.c b/src/ftdi.c index 8c0862c..4a2e3f7 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -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;