From 0e6cf62b5320ccdae0a4930cd4bc0b42b37e811d Mon Sep 17 00:00:00 2001 From: Gerd v. Egidy Date: Sun, 13 Dec 2009 00:48:49 +0100 Subject: [PATCH] fix description strings without serial --- src/ftdi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.1