libsmartcols: remove unnecessary check [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
7396bdd468
commit
78ad5aaaa9
|
@ -310,7 +310,7 @@ static int print_data(struct libscols_table *tb,
|
|||
len = width;
|
||||
bytes = mbs_truncate(data, &len); /* updates 'len' */
|
||||
|
||||
if (!data || bytes == (size_t) -1) {
|
||||
if (bytes == (size_t) -1) {
|
||||
bytes = len = 0;
|
||||
data = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue