summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library
diff options
context:
space:
mode:
authorlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-04-25 08:09:36 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2012-04-25 08:09:36 +0000
commit1658440eed04c9bdfb187d63992f7722ed8c4577 (patch)
treeada7170f5393d4afdafe6d5be92d9cf19efcaf1f /MdeModulePkg/Library
parent894c9c6e3f519b6a365cd505111d460bd71d2e4a (diff)
downloadedk2-platforms-1658440eed04c9bdfb187d63992f7722ed8c4577.tar.xz
Fix UNIX GCC build fail.
Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13218 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r--MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c2
-rw-r--r--MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
index 08d295ca5a..696aa6673e 100644
--- a/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
+++ b/MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
@@ -408,6 +408,8 @@ GetGauge (
EFI_STATUS Status;
GAUGE_DATA_ENTRY_EX *GaugeEntryEx;
+ GaugeEntryEx = NULL;
+
Status = GetGaugeEx (LogEntryKey, &GaugeEntryEx);
if (EFI_ERROR (Status)) {
return Status;
diff --git a/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c b/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
index 5ee1f603d1..ca953df932 100644
--- a/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
+++ b/MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
@@ -422,6 +422,8 @@ GetGauge (
EFI_STATUS Status;
GAUGE_DATA_ENTRY_EX *GaugeEntryEx;
+ GaugeEntryEx = NULL;
+
Status = GetGaugeEx (LogEntryKey, &GaugeEntryEx);
if (EFI_ERROR (Status)) {
return Status;