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.1.0~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da0f9977a1946bbb2c2ae7b3f23787e56fccf3a3;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 bede03574..148d5b6e0 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -2738,8 +2738,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);