]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: do not log uninitialized memory
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Sep 2017 11:46:53 +0000 (13:46 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 10 Sep 2017 18:12:29 +0000 (14:12 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index 87e48729a0ec117b11584a5cbe314f3f473e6b83..476073e961aacc830edb0481125fa334c5ced4f4 100644 (file)
@@ -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);