]> git.proxmox.com Git - mirror_lxc.git/commitdiff
conf: Fixes unitialised variable.
authortomponline <tomp@tomp.uk>
Tue, 5 Mar 2019 16:56:42 +0000 (16:56 +0000)
committertomponline <tomp@tomp.uk>
Tue, 5 Mar 2019 16:56:42 +0000 (16:56 +0000)
Signed-off-by: tomponline <tomp@tomp.uk>
src/lxc/conf.c

index 794a36fef95499e6dab73dee68e6f06be5f224e7..60e4ebaa70638c9ff15ec2375822c81581924b8e 100644 (file)
@@ -2770,7 +2770,7 @@ struct lxc_conf *lxc_conf_init(void)
 int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf,
                     size_t buf_size)
 {
-       __do_close_prot_errno int fd;
+       __do_close_prot_errno int fd = 0;
        int ret;
        char path[PATH_MAX];