]> sigrok.org Git - libsigrok.git/commit - src/hardware/maynuo-m97/api.c
maynuo-m97: fix potential NULL dereference
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:15:51 +0000 (19:15 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commitfe535a89c9b8dfceeb7706c71af5aad7f6dcda26
tree882f092f0d4f74607ed7586c82b63f22d6493d53
parent4072d5b42fdbafe3866584c7405023c361459a40
maynuo-m97: fix potential NULL dereference

Check pointers' validity before dereferencing them.

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