]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: (sample) remove hidden variable [CodeQL scan]
authorKarel Zak <kzak@redhat.com>
Wed, 21 Sep 2022 07:42:12 +0000 (09:42 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Sep 2022 07:42:12 +0000 (09:42 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/samples/maxout.c

index 263d4de81bde3caeecd6caf94e9e6b515dbb0d1b..20c6424e404e0f4ad5d738c5f966d0856a916f8f 100644 (file)
@@ -42,7 +42,6 @@ int main(int argc, char *argv[])
 
        while (nlines--) {
                struct libscols_line *ln = scols_table_new_line(tb, NULL);
-               int rc;
 
                rc = scols_line_set_data(ln, COL_LEFT, "A");
                if (!rc)