X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fcsv.c;h=4dcc77b8eaeb19e13999324e230786d8da19ef9f;hb=c35baf6eb0b0b2bc7b1240809775eca1927ca199;hp=66cf4bb3c2445af3ad9c8c3c1be36e2d658b03d4;hpb=cd11e33c5de58edb0340fd9f25115aa4509f4767;p=libsigrok.git diff --git a/src/input/csv.c b/src/input/csv.c index 66cf4bb3..4dcc77b8 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -657,10 +657,12 @@ static int make_column_details_from_format(const struct sr_input *in, * line won't get processed another time. */ column = column_texts[detail->col_nr - 1]; - if (inc->use_header && column && *column) + if (inc->use_header && column && *column) { + column = g_strstrip(column); caption = sr_scpi_unquote_string(column); - else + } else { caption = NULL; + } if (!caption || !*caption) caption = NULL; /*