libsmartcols: (sample) remove unnecessary check [coverity scan]
@str cannot be NULL ... Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
f3a55c1fde
commit
04e6ab9c1b
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue