Revision: 16442
          http://sourceforge.net/p/edk2/code/16442
Author:   vanjeff
Date:     2014-11-25 08:15:08 +0000 (Tue, 25 Nov 2014)
Log Message:
-----------
MdeModulePkg/SecurityPkg VariablePei: Fix VS2013 build failure.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <[email protected]>
Reviewed-by: Liming Gao <[email protected]>

(Sync patch r16406 from main trunk.)
(cherry picked from commit b24fee9350aa5bbb0a7794269c94a08246240569)

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/16406

Modified Paths:
--------------
    branches/UDK2014.SP1/MdeModulePkg/Universal/Variable/Pei/Variable.c
    branches/UDK2014.SP1/SecurityPkg/VariableAuthenticated/Pei/Variable.c

Modified: branches/UDK2014.SP1/MdeModulePkg/Universal/Variable/Pei/Variable.c
===================================================================
--- branches/UDK2014.SP1/MdeModulePkg/Universal/Variable/Pei/Variable.c 
2014-11-25 08:14:01 UTC (rev 16441)
+++ branches/UDK2014.SP1/MdeModulePkg/Universal/Variable/Pei/Variable.c 
2014-11-25 08:15:08 UTC (rev 16442)
@@ -884,6 +884,8 @@
     return EFI_INVALID_PARAMETER;
   }
 
+  VariableHeader = NULL;
+
   //
   // Find existing variable
   //
@@ -970,6 +972,8 @@
     return EFI_INVALID_PARAMETER;
   }
 
+  VariableHeader = NULL;
+
   Status = FindVariable (VariableName, VariableGuid, &Variable, &StoreInfo);
   if (Variable.CurrPtr == NULL || Status != EFI_SUCCESS) {
     return Status;

Modified: branches/UDK2014.SP1/SecurityPkg/VariableAuthenticated/Pei/Variable.c
===================================================================
--- branches/UDK2014.SP1/SecurityPkg/VariableAuthenticated/Pei/Variable.c       
2014-11-25 08:14:01 UTC (rev 16441)
+++ branches/UDK2014.SP1/SecurityPkg/VariableAuthenticated/Pei/Variable.c       
2014-11-25 08:15:08 UTC (rev 16442)
@@ -883,6 +883,8 @@
     return EFI_INVALID_PARAMETER;
   }
 
+  VariableHeader = NULL;
+
   //
   // Find existing variable
   //
@@ -969,6 +971,8 @@
     return EFI_INVALID_PARAMETER;
   }
 
+  VariableHeader = NULL;
+
   Status = FindVariable (VariableName, VariableGuid, &Variable, &StoreInfo);
   if (Variable.CurrPtr == NULL || Status != EFI_SUCCESS) {
     return Status;


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to