Skip to content

Commit

Permalink
mount_utils: initialize fd
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent 362ad2f commit 20af37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/mount_utils.h
Expand Up @@ -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) {
Expand Down

0 comments on commit 20af37f

Please sign in to comment.