git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7e2c523
)
Add missing check for NULL product string
author
Uwe Bonnes
<bon@elektron.ikp.physik.tu-darmstadt.de>
Mon, 20 Jun 2011 13:16:05 +0000 (15:16 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Tue, 21 Jun 2011 07:51:08 +0000 (09:51 +0200)
src/ftdi.c
patch
|
blob
|
blame
|
history
diff --git
a/src/ftdi.c
b/src/ftdi.c
index
5cb3ca5
..
0893421
100644
(file)
--- a/
src/ftdi.c
+++ b/
src/ftdi.c
@@
-2226,6
+2226,7
@@
int ftdi_eeprom_initdefaults(struct ftdi_context *ftdi, char * manufacturer,
if (eeprom->product)
free (eeprom->product);
eeprom->product = NULL;
+ if(product)
{
eeprom->product = malloc(strlen(product)+1);
if (eeprom->product)