[CRIU] [PATCH cr] restore: don't use an uninitialized variable

Andrey Vagin avagin at openvz.org
Tue May 15 09:49:00 EDT 2012


The global variable me isn't initialized, when we tried to use it.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index 0f83e2a..b876d13 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -614,7 +614,7 @@ static int restore_task_with_children(void *_arg)
 
 	pid = getpid();
 	if (ca->pid != pid) {
-		pr_err("%d: Pid do not match expected %d\n", me->pid.pid, ca->pid);
+		pr_err("Pid %d do not match expected %d\n", pid, ca->pid);
 		exit(-1);
 	}
 
-- 
1.7.1



More information about the CRIU mailing list