conf: do not log uninitialized memory

parent 2187efd3
...@@ -2738,8 +2738,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid) ...@@ -2738,8 +2738,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
} else { } else {
ret = write_id_mapping(type, pid, mapbuf, pos - mapbuf); ret = write_id_mapping(type, pid, mapbuf, pos - mapbuf);
if (ret < 0) { if (ret < 0) {
ERROR("Failed to write mapping \"%s\": %s", ERROR("Failed to write mapping: %s", mapbuf);
cmd_output, mapbuf);
return -1; return -1;
} }
TRACE("Wrote mapping \"%s\"", mapbuf); TRACE("Wrote mapping \"%s\"", mapbuf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment