X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fcsv.c;h=5b5a8f31682ed2a404590de48abdd0c091ec1175;hb=026d6b2ff616ca03a42286e7d7a9a33bce9bf053;hp=e72357bb6d7f7983c02fd486af9c60467c8e3273;hpb=d5cc282ff8026173c14ff6957482a24b2d6feef3;p=libsigrok.git diff --git a/src/input/csv.c b/src/input/csv.c index e72357bb..5b5a8f31 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -506,7 +506,7 @@ static int initial_parse(const struct sr_input *in, GString *buf) } if (!lines[l]) { /* Not enough data for a proper line yet. */ - ret = SR_OK_CONTINUE; + ret = SR_ERR_NA; goto out; } @@ -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++;