Skip to content

Commit

Permalink
conf: do not log uninitialized memory
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 5, 2017
1 parent 2187efd commit da0f997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/conf.c
Expand Up @@ -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);
Expand Down

0 comments on commit da0f997

Please sign in to comment.