From 5cf51172e3031f1b739d36b24b426a2def708b9b Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 5 Feb 2021 21:21:01 +0100 Subject: [PATCH] mount_utils: initialize fd Signed-off-by: Christian Brauner --- src/lxc/mount_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/mount_utils.h b/src/lxc/mount_utils.h index d704bfe1d..976c9cd86 100644 --- a/src/lxc/mount_utils.h +++ b/src/lxc/mount_utils.h @@ -195,7 +195,7 @@ __hidden extern int fd_bind_mount(int dfd_from, const char *path_from, */ static inline bool new_mount_api(void) { - __do_close int fd; + __do_close int fd = -EBADF; static int supported = -1; if (supported == -1) { -- 2.47.2