diff options
author | Jaben Carsey <jaben.carsey@intel.com> | 2014-02-11 23:37:18 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-02-11 23:37:18 +0000 |
commit | ba71f790583850b01a6336a3ac246a0ced877ce5 (patch) | |
tree | d3684dc8e863401d30ad437e5ae14bbeffce43ef /ShellPkg | |
parent | fe6c94d2e158e13fb6452979fc730fdd7c8f6447 (diff) | |
download | edk2-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')
-rw-r--r-- | ShellPkg/Application/Shell/Shell.c | 2 |
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,
|