summaryrefslogtreecommitdiff
path: root/ShellPkg/Application
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2014-02-11 23:37:18 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2014-02-11 23:37:18 +0000
commitba71f790583850b01a6336a3ac246a0ced877ce5 (patch)
treed3684dc8e863401d30ad437e5ae14bbeffce43ef /ShellPkg/Application
parentfe6c94d2e158e13fb6452979fc730fdd7c8f6447 (diff)
downloadedk2-platforms-ba71f790583850b01a6336a3ac246a0ced877ce5.tar.xz
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
Diffstat (limited to 'ShellPkg/Application')
-rw-r--r--ShellPkg/Application/Shell/Shell.c2
1 files changed, 1 insertions, 1 deletions
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,