]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libsmartcols: fix title sample
authorKarel Zak <kzak@redhat.com>
Mon, 25 Jan 2016 12:45:34 +0000 (13:45 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Jan 2016 12:45:34 +0000 (13:45 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libsmartcols/samples/title.c

index 9bc955fe854020447253d1fcc122049bddb4d632..14d0326ac2d685af308597c99564f6cce58dbd6a 100644 (file)
@@ -44,7 +44,7 @@ static void add_line(struct libscols_table *tb, const char *name, const char *da
 
        if (scols_line_set_data(ln, COL_NAME, name))
                goto fail;
-       if (scols_line_set_data(ln, COL_NAME, data))
+       if (scols_line_set_data(ln, COL_DATA, data))
                goto fail;
        return;
 fail: