From 160691b9008b2e13f981f6b8876cbbeb247c773d Mon Sep 17 00:00:00 2001 From: Jens Steinhauser Date: Sun, 19 Oct 2014 19:53:08 +0200 Subject: [PATCH] input/csv: Skip header line. --- src/input/csv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/input/csv.c b/src/input/csv.c index 180ff3df..49bd73c8 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -667,6 +667,13 @@ static int process_buffer(struct sr_input *in) continue; } + /* Skip the header line, its content was used as the channel names. */ + if (inc->header) { + sr_spew("Header line %zu skipped.", inc->line_number); + inc->header = FALSE; + continue; + } + if (!(columns = parse_line(lines[l], inc, max_columns))) { sr_err("Error while parsing line %zu.", inc->line_number); return SR_ERR;