From 1658440eed04c9bdfb187d63992f7722ed8c4577 Mon Sep 17 00:00:00 2001 From: lzeng14 Date: Wed, 25 Apr 2012 08:09:36 +0000 Subject: [PATCH] Fix UNIX GCC build fail. Signed-off-by: Star Zeng Reviewed-by: Liming Gao git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13218 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c | 2 ++ .../Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c | 2 ++ 2 files changed, 4 insertions(+) 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; -- 2.39.5