]> sigrok.org Git - libsigrok.git/commit
dreamsourcelab-dslogic: avoid NULL pointer dereference
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 22:11:59 +0000 (23:11 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:34:17 +0000 (21:34 +0100)
commit8e2fd23acb61f8f7471e40ef7439568022485d25
tree53d13999807f5fc96a1b675338dd879b9639c28f
parent755eb221565ae83d8e80e97615b84e2fff4580dd
dreamsourcelab-dslogic: avoid NULL pointer dereference

Check pointers' validity before dereferencing them.

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