diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-07-22 10:10:08 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-07-25 10:20:13 +0800 |
commit | 1b0319535bc751e27846cbf0c4a1eb4d7d690e97 (patch) | |
tree | 3c331f1514e35549cdb04ff18ce819f95fe9d954 /ShellPkg | |
parent | 94fcb76b61f180b1ebe2fa3b3b26138c733c4d45 (diff) | |
download | edk2-1b0319535bc751e27846cbf0c4a1eb4d7d690e97.tar.gz edk2-1b0319535bc751e27846cbf0c4a1eb4d7d690e97.tar.bz2 edk2-1b0319535bc751e27846cbf0c4a1eb4d7d690e97.zip |
ShellPkg/If: Fix issue to pass static code checker
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'ShellPkg')
-rw-r--r-- | ShellPkg/Library/UefiShellLevel1CommandsLib/If.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c index e4dbe01090..37e196c2c1 100644 --- a/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c +++ b/ShellPkg/Library/UefiShellLevel1CommandsLib/If.c @@ -377,6 +377,7 @@ ProcessStatement ( Status = EFI_SUCCESS;
BinOp = OperatorMax;
OperationResult = FALSE;
+ Match = FALSE;
StatementWalker = gEfiShellParametersProtocol->Argv[StartParameterNumber];
if (!EFI_ERROR (IsNextFragment((CONST CHAR16**)(&StatementWalker), L"not", &Match)) && Match) {
NotPresent = TRUE;
|