diff options
author | Star Zeng <star.zeng@intel.com> | 2014-11-19 07:13:35 +0000 |
---|---|---|
committer | lzeng14 <lzeng14@Edk2> | 2014-11-19 07:13:35 +0000 |
commit | eb774e2ef5b4b91f9c90598683daa7db84e53dab (patch) | |
tree | 184a1b005f00be55f79fc04dbce3c27b840a37d8 /MdeModulePkg/Universal | |
parent | ac30bca0a37b0f88781ff447183970a523d1f5c3 (diff) | |
download | edk2-platforms-eb774e2ef5b4b91f9c90598683daa7db84e53dab.tar.xz |
MdeModulePkg/SecurityPkg VariablePei: Fix VS2013 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16406 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal')
-rw-r--r-- | MdeModulePkg/Universal/Variable/Pei/Variable.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/Pei/Variable.c b/MdeModulePkg/Universal/Variable/Pei/Variable.c index 4716cc5124..97c86f2feb 100644 --- a/MdeModulePkg/Universal/Variable/Pei/Variable.c +++ b/MdeModulePkg/Universal/Variable/Pei/Variable.c @@ -884,6 +884,8 @@ PeiGetVariable ( return EFI_INVALID_PARAMETER;
}
+ VariableHeader = NULL;
+
//
// Find existing variable
//
@@ -970,6 +972,8 @@ PeiGetNextVariableName ( return EFI_INVALID_PARAMETER;
}
+ VariableHeader = NULL;
+
Status = FindVariable (VariableName, VariableGuid, &Variable, &StoreInfo);
if (Variable.CurrPtr == NULL || Status != EFI_SUCCESS) {
return Status;
|