]> sigrok.org Git - libsigrok.git/commit
input/csv: Fix a false negative after successful import
authorGerhard Sittig <redacted>
Mon, 5 Jun 2017 11:37:33 +0000 (13:37 +0200)
committerUwe Hermann <redacted>
Tue, 6 Jun 2017 21:27:52 +0000 (23:27 +0200)
commit4555d3bda00ed6f12016d4aca28bbef3cb459988
tree4be147fd8887f28f750e24fede65037a908a6669
parentf9b748615488d0d0f5e07978717a53dcdf79f732
input/csv: Fix a false negative after successful import

The input module runs receive() and end() invocations which end up
calling process_buffer(). It's perfectly legal to call the process
routine with an empty accumulation buffer, especially when the process
routine was called from end().

This fixes a condition where PulseView raised a fatal error at the end
of a completed successful import.

Reported-By: Sergey Alirzaev <redacted>
src/input/csv.c