mirror of https://github.com/acidanthera/audk.git
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:
parent
fe6c94d2e1
commit
ba71f79058
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue