]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: fix potential NULL dereference
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:08:11 +0000 (19:08 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commitfc69eecca07782580d391a385d62321bbfcb038d
treeefe1a7fbae1851b61e78522a7fd559031cc635c3
parent1674225a2fa7e1b6d0c235549e1a7f6ec44e7520
korad-kaxxxxp: fix potential NULL dereference

Check pointers' validity before dereferencing them.

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