]> sigrok.org Git - libsigrok.git/commit
rigol-ds: silence potential NULL dereference compiler warning
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:26:42 +0000 (19:26 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commit0306ae30b692413b79c69df34a8916727c0282b6
tree6743fcca3d2e766492725e2f8721ba575a76f5d7
parentb04cbd0ba3301396bd9e1e31c6f462087caf1de8
rigol-ds: silence potential NULL dereference compiler warning

Check pointers' validity before dereferencing them.

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