From: Christian Brauner Date: Tue, 5 Mar 2019 18:29:38 +0000 (+0100) Subject: conf: avoid compiler warning X-Git-Tag: lxc-3.2.0~120^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41e0074919d59500c4d010fb948e003f167a9113;p=thirdparty%2Flxc.git conf: avoid compiler warning Signed-off-by: Christian Brauner --- 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];