From 04e6ab9c1b37c1a42272b076a501f6d3768fc11a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 14 Jul 2020 12:20:36 +0200 Subject: [PATCH] libsmartcols: (sample) remove unnecessary check [coverity scan] @str cannot be NULL ... Signed-off-by: Karel Zak --- libsmartcols/samples/fromfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsmartcols/samples/fromfile.c b/libsmartcols/samples/fromfile.c index 64b3974df..4bc03f3de 100644 --- a/libsmartcols/samples/fromfile.c +++ b/libsmartcols/samples/fromfile.c @@ -152,7 +152,7 @@ static int parse_column_data(FILE *f, struct libscols_table *tb, int col) if (!ln) break; - if (str && *str && scols_line_set_data(ln, col, str) != 0) + if (*str && scols_line_set_data(ln, col, str) != 0) err(EXIT_FAILURE, "failed to add output data"); }