fixed NULL-pointer dereference in the ftdi_error_return(code, str) macro that occures...
authorPeter Schneider <pitpompej@arcor.de>
Wed, 25 Jul 2012 13:26:23 +0000 (15:26 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 28 Jul 2012 16:01:40 +0000 (18:01 +0200)
commitc1cf60a76010148ecba05f5a55ee19d5b71891c7
tree6fe63a9cca10dcb9e74414da8d2fb79d4d8ae678
parent7aec58fb6798b5cde3971da38cbf956351093f48
fixed NULL-pointer dereference in the ftdi_error_return(code, str) macro that occures when it is called because of a ftdi == NULL check

Hi,

as we just performed a Cppcheck run upon our project including the libftdi sources it found a possible null-pointer dereference when calling the ftdi_error_return(code, str) macro after the ftdi==NULL check.

Fix for this bug:
src/ftdi.c