]> sigrok.org Git - libsigrok.git/commit
scpi-pps: silence potential NULL dereference compiler warning
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:29:08 +0000 (19:29 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:40 +0000 (21:37 +0100)
commit08eba2d30167ec3f6ec12ac8c4f5d256f8b20f33
tree66cd6e227665db34eac55b4824837d0f7a135153
parent6a821db6f2dc4bef110b0c33f50ff5753f7fdf0f
scpi-pps: silence potential NULL dereference compiler warning

Check pointers' validity before dereferencing them.

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