summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2014-11-17 02:30:44 +0000
committerlzeng14 <lzeng14@Edk2>2014-11-17 02:30:44 +0000
commitf44200276423fdfbce4ddb4ba118b7efa8d2385a (patch)
tree80fe8bb9296036cb733da1e7c605a50a04a64797 /MdeModulePkg/Core
parent1db55d6a827cc2625a48a494e426e64f0b36ac0e (diff)
downloadedk2-platforms-f44200276423fdfbce4ddb4ba118b7efa8d2385a.tar.xz
MdeModulePkg DxeCore/PiSmmCore/MemoryProfileInfo: Fix EBC and VS2013 build failure.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16396 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core')
-rw-r--r--MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c2
-rw-r--r--MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c b/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
index 1602fdb8e1..dca0008f75 100644
--- a/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
+++ b/MdeModulePkg/Core/Dxe/Mem/MemoryProfileRecord.c
@@ -817,6 +817,8 @@ CoreUpdateProfileAllocate (
MEMORY_PROFILE_ALLOC_INFO_DATA *AllocInfoData;
EFI_MEMORY_TYPE ProfileMemoryIndex;
+ AllocInfoData = NULL;
+
ContextData = GetMemoryProfileContext ();
if (ContextData == NULL) {
return FALSE;
diff --git a/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c b/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c
index 24ab1b1de4..e119fadb67 100644
--- a/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c
+++ b/MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c
@@ -824,6 +824,8 @@ SmmCoreUpdateProfileAllocate (
MEMORY_PROFILE_ALLOC_INFO_DATA *AllocInfoData;
EFI_MEMORY_TYPE ProfileMemoryIndex;
+ AllocInfoData = NULL;
+
ContextData = GetSmramProfileContext ();
if (ContextData == NULL) {
return FALSE;