]> sigrok.org Git - libsigrok.git/commit
scpi: Don't process received data of zero length
authorGerhard Sittig <redacted>
Fri, 30 Dec 2016 12:16:04 +0000 (13:16 +0100)
committerUwe Hermann <redacted>
Sat, 7 Jan 2017 14:51:47 +0000 (15:51 +0100)
commit904401e8fe8175252d68fcf6e0c0edae902c1c17
tree9530041fda440023fa418d4211e430db332d7867
parentd3de86f3ca50a55773c6974f0c336e942030b0bd
scpi: Don't process received data of zero length

When nothing was received in a read attempt, we need not adjust the
buffered data's read position nor the glib string object's size. Skip
any processing for empty input, just keep checking for timeouts.
src/scpi/scpi.c