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

Andrew Vagin avagin at parallels.com
Tue May 15 09:52:21 EDT 2012


drop this one

On Tue, May 15, 2012 at 05:49:00PM +0400, Andrey Vagin wrote:
> 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
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list