]> sigrok.org Git - libsigrok.git/commit
fx2lafw: silence "NULL dereference" compiler warning
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 17:48:29 +0000 (18:48 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commit0d1c51f57f31baeb3a05f511728129351f9655fd
tree27a26e7edfddcbf190c96c594164ecb1fa3bdf1f
parentf6051b9eca164319131ada85c3f82f75dca460cf
fx2lafw: silence "NULL dereference" compiler warning

Check pointers' validity before dereferencing them.

This was reported by clang's scan-build.
src/hardware/fx2lafw/api.c