input/csv: Code cleanup.

This cleans up a warning generated by clang's static analyzer.
This commit is contained in:
Bert Vermeulen 2014-10-02 13:59:44 +02:00
parent 74e1f6f53c
commit 18078d0532
2 changed files with 2 additions and 1 deletions

View File

@ -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++;

View File

@ -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)