The branch, libftdi-0.x has been updated
via 95f18b393e56eb1b70d6c54909ca6e1303816f69 (commit)
from 54357fa1aa137a89725cfe34f24cf6c82d5a5d73 (commit)
- Log -----------------------------------------------------------------
commit 95f18b393e56eb1b70d6c54909ca6e1303816f69
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date: Sat Jul 28 18:04:51 2012 +0200
Backport possible NULL pointer crash fix from master branch
-----------------------------------------------------------------------
Summary of changes:
src/ftdi.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c
index 980622d..2d47028 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -45,7 +45,10 @@
#endif
#define ftdi_error_return(code, str) do { \
- ftdi->error_str = str; \
+ if ( ftdi ) \
+ ftdi->error_str = str; \
+ else \
+ fprintf(stderr, str); \
return code; \
} while(0);
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|