]> sigrok.org Git - libsigrok.git/commit
yokogawa-dlm: fix several compiler warnings (assignment, memory)
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:32:12 +0000 (19:32 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:40 +0000 (21:37 +0100)
commit93b5cd6919a31f530cd87042b11a28827f4a7fa6
treeea13920f9502156e3b58278779038e207dee33e6
parent2da5c95f3dc6ad0c9067e23c46ae643958fca015
yokogawa-dlm: fix several compiler warnings (assignment, memory)

Check pointers' validity before dereferencing them. Release partially
allocated memory in an error path. Remove an assignment which never took
effect.

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