summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Core/Pei
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2018-09-04 09:15:42 +0800
committerStar Zeng <star.zeng@intel.com>2018-09-05 13:17:10 +0800
commit8a204b2aca5a137651ba0665d4ea012d6241fb15 (patch)
tree20925a24267532c4bc7ded5eade29001505d5c27 /MdeModulePkg/Core/Pei
parent865d7f7b0158f3fb4b3fb187aae4b323a705a8ed (diff)
downloadedk2-8a204b2aca5a137651ba0665d4ea012d6241fb15.tar.gz
edk2-8a204b2aca5a137651ba0665d4ea012d6241fb15.tar.bz2
edk2-8a204b2aca5a137651ba0665d4ea012d6241fb15.zip
MdeModulePkg PeiCore: Fix VS2012 build failure
fwvol.c(1572) : warning C4701: potentially uninitialized local variable 'Status' used The build failure is caused by 0e042d0ad76157ac9bad17bb4e1ff2919ca0d8f4 for https://bugzilla.tianocore.org/show_bug.cgi?id=1131 This patch initializes Status to fix the build failure. Cc: Dandan Bi <dandan.bi@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Diffstat (limited to 'MdeModulePkg/Core/Pei')
-rw-r--r--MdeModulePkg/Core/Pei/FwVol/FwVol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
index 7ea503a10f..5629c9a1ce 100644
--- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
@@ -1412,6 +1412,8 @@ ProcessFvFile (
ParentFvHandle = ParentFvCoreHandle->FvHandle;
ParentFvPpi = ParentFvCoreHandle->FvPpi;
+ Status = EFI_SUCCESS;
+
//
// Find FvImage(s) in FvFile
//