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:00:42 +0000 (18:00 +0200)
commitb0a504597b70c3702742a816e6bf1fcc7cfc6d53
tree717438cb4352e7adbc1aea58610e811cf57594dc
parent2e48e9fd12c105a31787c42052f5c6654b73d92b
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