From 41e0074919d59500c4d010fb948e003f167a9113 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 5 Mar 2019 19:29:38 +0100 Subject: [PATCH] conf: avoid compiler warning Signed-off-by: Christian Brauner --- 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..5d381b713 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 = -EBADF; int ret; char path[PATH_MAX]; -- 2.47.2