From 8b51ccde69ab640dac747dc1703397d6080f5a7f Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 5 Sep 2017 13:46:53 +0200 Subject: [PATCH] conf: do not log uninitialized memory Signed-off-by: Christian Brauner --- src/lxc/conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 87e48729a..476073e96 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2517,8 +2517,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid) } else { ret = write_id_mapping(type, pid, mapbuf, pos - mapbuf); if (ret < 0) { - ERROR("Failed to write mapping \"%s\": %s", - cmd_output, mapbuf); + ERROR("Failed to write mapping: %s", mapbuf); return -1; } TRACE("Wrote mapping \"%s\"", mapbuf); -- 2.47.2