]> sigrok.org Git - libsigrok.git/commit
hp-3457a: fix potential NULL dereference
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:05:38 +0000 (19:05 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commit1674225a2fa7e1b6d0c235549e1a7f6ec44e7520
tree9c8dacfc6e50dc475f190b06668d5c59124a53b9
parente93ca8a4d66a42517a21f6c34bba7cd73dc042d8
hp-3457a: fix potential NULL dereference

Check the active channels' list for not being empty, before
dereferencing pointers.

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