Unverified Commit b5bd9e11 by Christian Brauner Committed by GitHub

Merge pull request #2895 from tomponline/tp-2019-03-05/minor-fix

conf: Fixes uninitialised variable. > @brauner clang is failing but gcc passes, would it be OK to initialise this to 0? He, unfortunately not. :) What would happen now is that you'd close `stdin` on a standard system. What you'd want is `= -EBADF`. :)
parents 859ce011 912c4bb4
...@@ -2770,7 +2770,7 @@ struct lxc_conf *lxc_conf_init(void) ...@@ -2770,7 +2770,7 @@ struct lxc_conf *lxc_conf_init(void)
int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf, int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf,
size_t buf_size) size_t buf_size)
{ {
__do_close_prot_errno int fd; __do_close_prot_errno int fd = 0;
int ret; int ret;
char path[PATH_MAX]; char path[PATH_MAX];
......
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