From 1b0319535bc751e27846cbf0c4a1eb4d7d690e97 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Fri, 22 Jul 2016 10:10:08 +0800 Subject: ShellPkg/If: Fix issue to pass static code checker Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Jaben Carsey Reviewed-by: Hao A Wu --- ShellPkg/Library/UefiShellLevel1CommandsLib/If.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ShellPkg/Library/UefiShellLevel1CommandsLib') 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; -- cgit v1.2.3