libftdi-git Archives

Subject: port libftdi to libusb-1.0 branch, master, updated. v0.17-200-g1077197

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 21 Jun 2011 09:51:25 +0200 (CEST)
The branch, master has been updated
       via  1077197170cbdce90a24aa0ff3e6b94c36552877 (commit)
      from  7e2c5236308765e9466d760ed3fb6720ba8a812e (commit)


- Log -----------------------------------------------------------------
commit 1077197170cbdce90a24aa0ff3e6b94c36552877
Author: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Mon Jun 20 15:16:05 2011 +0200

    Add missing check for NULL product string

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/ftdi.c b/src/ftdi.c
index 5cb3ca5..0893421 100644
--- 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)


hooks/post-receive
-- 
port libftdi to libusb-1.0

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • port libftdi to libusb-1.0 branch, master, updated. v0.17-200-g1077197, libftdi-git <=