]> sigrok.org Git - libsigrok.git/commit
lecroy-xstream: fix several compiler warnings (assignment, memory)
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:12:12 +0000 (19:12 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commitf62c2ad65d3c2e20eba512d6460c9c48e17cca08
treefcf13b897b4b675d0196c4aa69fb6d8200a6e7b6
parentb65adcedb89f69c7f52a6e98e73a3513c2648e95
lecroy-xstream: fix several compiler warnings (assignment, memory)

Remove an assignment that won't take effect. Check pointers' validity
before dereferencing. Fix a memory leak.

This was reported by clang's scan-build.
src/hardware/lecroy-xstream/api.c
src/hardware/lecroy-xstream/protocol.c