libsmartcols: (sample) remove unnecessary check [coverity scan]

@str cannot be NULL ...

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2020-07-14 12:20:36 +02:00
parent f3a55c1fde
commit 04e6ab9c1b
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}