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 /SecurityPkg | |
parent | ac30bca0a37b0f88781ff447183970a523d1f5c3 (diff) | |
download | edk2-eb774e2ef5b4b91f9c90598683daa7db84e53dab.tar.gz edk2-eb774e2ef5b4b91f9c90598683daa7db84e53dab.tar.bz2 edk2-eb774e2ef5b4b91f9c90598683daa7db84e53dab.zip |
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 'SecurityPkg')
-rw-r--r-- | SecurityPkg/VariableAuthenticated/Pei/Variable.c | 4 |
1 files changed, 4 insertions, 0 deletions
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;
|