From 727df7a2ef98af08f95b5930359055219d97ca6e Mon Sep 17 00:00:00 2001 From: Yann Droneaud Date: Sun, 7 Mar 2010 22:37:23 +0100 Subject: [PATCH] cmd: Fixed uninitialised field in WCMD_addCommand() (Valgrind). --- programs/cmd/wcmdmain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c index b2243e390e..b86801c310 100644 --- a/programs/cmd/wcmdmain.c +++ b/programs/cmd/wcmdmain.c @@ -1636,6 +1636,8 @@ static void WCMD_addCommand(WCHAR *command, int *commandLen, } else { thisEntry->command = NULL; + thisEntry->redirects = NULL; + thisEntry->pipeFile[0] = 0x00; } /* Fill in other fields */ -- 2.33.8