summaryrefslogtreecommitdiff
path: root/ShellPkg
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-07-22 10:10:08 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-07-25 10:20:13 +0800
commit1b0319535bc751e27846cbf0c4a1eb4d7d690e97 (patch)
tree3c331f1514e35549cdb04ff18ce819f95fe9d954 /ShellPkg
parent94fcb76b61f180b1ebe2fa3b3b26138c733c4d45 (diff)
downloadedk2-platforms-1b0319535bc751e27846cbf0c4a1eb4d7d690e97.tar.xz
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.c1
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;