]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wdctl: clean up scols usage
authorKarel Zak <kzak@redhat.com>
Thu, 3 Apr 2014 09:00:02 +0000 (11:00 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 3 Apr 2014 10:29:21 +0000 (12:29 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/wdctl.c

index 63da5f340eefdbed90885f96c2d1672ea0f47f00..68ecf0d29520e43446329bc2367a759ec4679f18 100644 (file)
@@ -211,7 +211,7 @@ static void add_flag_line(struct libscols_table *table, struct wdinfo *wd, const
 
        line = scols_table_new_line(table, NULL);
        if (!line) {
-               warn(_("failed to add line to output"));
+               warn(_("failed to initialize output line"));
                return;
        }
 
@@ -239,7 +239,7 @@ static void add_flag_line(struct libscols_table *table, struct wdinfo *wd, const
                }
 
                if (str)
-                       scols_line_set_data(line, i, xstrdup(str));
+                       scols_line_set_data(line, i, str);
        }
 }