[CRIU] [PATCH 1/4] crtools: fix compilation in parasite_get_proc_fd

Konstantin Khlebnikov khlebnikov at openvz.org
Wed Sep 12 03:48:36 EDT 2012


parasite.c: In function ‘parasite_service’:
parasite.c:383:11: error: ‘fd’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Signed-off-by: Konstantin Khlebnikov <khlebnikov at openvz.org>
---
 0 files changed

diff --git a/parasite.c b/parasite.c
index 1885812..9204b04 100644
--- a/parasite.c
+++ b/parasite.c
@@ -404,7 +404,7 @@ static int parasite_get_proc_fd()
 
 	if (sys_mount("proc", proc_mountpoint, "proc", MS_MGC_VAL, NULL)) {
 		sys_write_msg("mount failed\n");
-		ret = -1;
+		fd = -1;
 		goto out_rmdir;
 	}
 



More information about the CRIU mailing list