From a42ee001013f8391bce040bfd4f67656ae6369b4 Mon Sep 17 00:00:00 2001 From: Tomoki Shirasawa Date: Wed, 13 Jan 2016 11:16:19 +0900 Subject: [PATCH] NR_execve: initialize local variable 'shell' refs #696 --- executer/user/mcexec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executer/user/mcexec.c b/executer/user/mcexec.c index be77c96d..a03a04ad 100644 --- a/executer/user/mcexec.c +++ b/executer/user/mcexec.c @@ -2056,12 +2056,13 @@ fork_err: char path[1024]; char *filename; int ret; - char *shell = NULL; + char *shell; char shell_path[1024]; /* Load descriptor phase */ case 1: + shell = NULL; filename = (char *)w.sr.args[1]; if ((ret = lookup_exec_path(filename, path, sizeof(path)))