From 98f87c507dc38d1478bb5486c73f66e6cc7a3cf0 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 3 Apr 2014 11:00:02 +0200 Subject: wdctl: clean up scols usage Signed-off-by: Karel Zak --- sys-utils/wdctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/wdctl.c') diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index 63da5f340..68ecf0d29 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); } } -- cgit v1.2.3-55-g7522