From 912c4bb474b52284cf82c336b0af161be6c25ac1 Mon Sep 17 00:00:00 2001 From: tomponline Date: Tue, 5 Mar 2019 16:56:42 +0000 Subject: [PATCH] conf: Fixes unitialised variable. Signed-off-by: tomponline --- src/lxc/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 794a36fef..60e4ebaa7 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -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]; -- 2.39.5