From eb774e2ef5b4b91f9c90598683daa7db84e53dab Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Wed, 19 Nov 2014 07:13:35 +0000 Subject: MdeModulePkg/SecurityPkg VariablePei: Fix VS2013 build failure. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16406 6f19259b-4bc3-4df7-8a09-765794883524 --- SecurityPkg/VariableAuthenticated/Pei/Variable.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'SecurityPkg') diff --git a/SecurityPkg/VariableAuthenticated/Pei/Variable.c b/SecurityPkg/VariableAuthenticated/Pei/Variable.c index 7ead809a3b..7ee8b88552 100644 --- a/SecurityPkg/VariableAuthenticated/Pei/Variable.c +++ b/SecurityPkg/VariableAuthenticated/Pei/Variable.c @@ -883,6 +883,8 @@ PeiGetVariable ( return EFI_INVALID_PARAMETER; } + VariableHeader = NULL; + // // Find existing variable // @@ -969,6 +971,8 @@ PeiGetNextVariableName ( return EFI_INVALID_PARAMETER; } + VariableHeader = NULL; + Status = FindVariable (VariableName, VariableGuid, &Variable, &StoreInfo); if (Variable.CurrPtr == NULL || Status != EFI_SUCCESS) { return Status; -- cgit v1.2.3