From: Bert Vermeulen Date: Thu, 2 Oct 2014 11:59:44 +0000 (+0200) Subject: input/csv: Code cleanup. X-Git-Tag: libsigrok-0.4.0~904 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=18078d0532d3daa013ad712356d93c28e1ae64fd;p=libsigrok.git input/csv: Code cleanup. This cleans up a warning generated by clang's static analyzer. --- diff --git a/src/input/csv.c b/src/input/csv.c index cc721baf..5b5a8f31 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -651,6 +651,7 @@ static int process_buffer(struct sr_input *in) else max_columns = 1; + ret = SR_OK; lines = g_strsplit_set(in->buf->str, "\r\n", 0); for (l = 0; lines[l]; l++) { inc->line_number++; diff --git a/src/input/wav.c b/src/input/wav.c index 3bdd12f0..1c0d4fd1 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -338,7 +338,7 @@ static int receive(struct sr_input *in, GString *buf) ret = process_buffer(in); - return SR_OK; + return ret; } static int end(struct sr_input *in)