From: Christian Brauner Date: Tue, 5 Sep 2017 11:46:53 +0000 (+0200) Subject: conf: do not log uninitialized memory X-Git-Tag: lxc-2.0.9~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b51ccde69ab640dac747dc1703397d6080f5a7f;p=thirdparty%2Flxc.git conf: do not log uninitialized memory Signed-off-by: Christian Brauner --- 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);