input/csv: Code cleanup.
This cleans up a warning generated by clang's static analyzer.
This commit is contained in:
parent
74e1f6f53c
commit
18078d0532
|
@ -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++;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue