From ba71f790583850b01a6336a3ac246a0ced877ce5 Mon Sep 17 00:00:00 2001 From: Jaben Carsey Date: Tue, 11 Feb 2014 23:37:18 +0000 Subject: ShellPkg: Fix uninitialized Variable error Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey Reviewed-by: Erik Bjorge git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15225 6f19259b-4bc3-4df7-8a09-765794883524 --- ShellPkg/Application/Shell/Shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ShellPkg/Application') diff --git a/ShellPkg/Application/Shell/Shell.c b/ShellPkg/Application/Shell/Shell.c index 72d7516b28..e00a57ba2e 100644 --- a/ShellPkg/Application/Shell/Shell.c +++ b/ShellPkg/Application/Shell/Shell.c @@ -938,7 +938,7 @@ ProcessCommandLine( LoopVar++; // Add `file-name-options` - for ( ; LoopVar < gEfiShellParametersProtocol->Argc ; LoopVar++) { + for (Size = 0 ; LoopVar < gEfiShellParametersProtocol->Argc ; LoopVar++) { ASSERT((ShellInfoObject.ShellInitSettings.FileOptions == NULL && Size == 0) || (ShellInfoObject.ShellInitSettings.FileOptions != NULL)); StrnCatGrow(&ShellInfoObject.ShellInitSettings.FileOptions, &Size, -- cgit v1.2.3