]> 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>
Fri, 20 Jan 2017 17:53:43 +0000 (18:53 +0100)
commit900846816fed39742b221568939f90acebc38f3c
tree92d8ebe713ab6bdcfd05dba2ec734d834c576e56
parentad21865fa7bb8bc429615235e90e012541d2b606
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