From b64159acdd5cbacebcdd6cfb7ac7fe81c8d5dee4 Mon Sep 17 00:00:00 2001 From: "MATSUMOTO, Ryosuke" Date: Thu, 24 Dec 2015 18:49:00 +0900 Subject: [PATCH] Fix 'mnt_path' may be used uninitialized in this function Signed-off-by: Pavel Emelyanov --- mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount.c b/mount.c index cb53fbca9..7c426088a 100644 --- a/mount.c +++ b/mount.c @@ -2280,7 +2280,7 @@ static int do_bind_mount(struct mount_info *mi) int exit_code = -1; bool shared = false; bool master = false; - char *mnt_path; + char *mnt_path = NULL; struct stat st; bool umount_mnt_path = false;