]> sigrok.org Git - libsigrok.git/commit
scpi: avoid uninitialized use of a variable
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 21:08:54 +0000 (22:08 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:32:11 +0000 (21:32 +0100)
commitda6f107efffbc7b2744f1ca69e8dc3d0c71a0a4a
tree5909d5a5e5769de771161c047a3ee6af6863e4d1
parentd3ec7035bc543e983aeb8cee723cb2c78f0f109a
scpi: avoid uninitialized use of a variable

The 'opc' variable was only conditionally assigned to (depends on
successful SCPI communication). Ensure there always is a known value.

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