ShellPkg: Fix uninitialized Variable error

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15225 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Jaben Carsey 2014-02-11 23:37:18 +00:00 committed by jcarsey
parent fe6c94d2e1
commit ba71f79058
1 changed files with 1 additions and 1 deletions

View File

@ -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,