]> sigrok.org Git - libsigrok.git/commit
atten-pps3xxx: silence NULL dereference compiler warnings
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 21:02:59 +0000 (22:02 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:34:17 +0000 (21:34 +0100)
commitf6c685e4d340b52962c2ae983974936071578156
treed1f89de1052183742d5d96c88d82fafd918a8c3a
parent7ee8511be45fa75a683aaff05d21cc6cf40ef75c
atten-pps3xxx: silence NULL dereference compiler warnings

Check pointers' validity before dereferencing them.

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