]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: remove unnecessary check [coverity scan]
authorKarel Zak <kzak@redhat.com>
Thu, 29 Jan 2015 10:07:37 +0000 (11:07 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Jan 2015 10:07:37 +0000 (11:07 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/src/table_print.c

index f08560c6665c0a87b9e6ed841df8c438bc34187b..e15deeef81d46d6fd35dc0cb4f9a726ba74cfa7f 100644 (file)
@@ -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;
                }