From: Karel Zak Date: Thu, 3 Apr 2014 09:00:02 +0000 (+0200) Subject: wdctl: clean up scols usage X-Git-Tag: v2.25-rc1~340 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98f87c507dc38d1478bb5486c73f66e6cc7a3cf0;p=thirdparty%2Futil-linux.git wdctl: clean up scols usage Signed-off-by: Karel Zak --- diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index 63da5f340e..68ecf0d295 100644 --- a/sys-utils/wdctl.c +++ b/sys-utils/wdctl.c @@ -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); } }