diff options
author | Star Zeng <star.zeng@intel.com> | 2016-06-29 22:22:57 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-07 15:08:51 +0800 |
commit | d920876b1bebfc56817364b69d9aa81961aac4c1 (patch) | |
tree | 75d521d32a0dc5caa561b87f5213e946290dc816 | |
parent | 4f1f0fcf1452b9714eeb3bd1473e2c2e6ccaf112 (diff) | |
download | edk2-platforms-d920876b1bebfc56817364b69d9aa81961aac4c1.tar.xz |
MdeModulePkg VariableInfo: Fix GCC build failure
GCC build failure: 'RealCommSize' may be used uninitialized
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
(cherry picked from commit 05b39efb669eaa173a76e58daf8e65bce2e0299e)
-rw-r--r-- | MdeModulePkg/Application/VariableInfo/VariableInfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Application/VariableInfo/VariableInfo.c b/MdeModulePkg/Application/VariableInfo/VariableInfo.c index df91c1451c..a88b7f1ec4 100644 --- a/MdeModulePkg/Application/VariableInfo/VariableInfo.c +++ b/MdeModulePkg/Application/VariableInfo/VariableInfo.c @@ -104,6 +104,7 @@ PrintInfoFromSmm ( }
CommBuffer = NULL;
+ RealCommSize = 0;
Status = EfiGetSystemConfigurationTable (
&gEdkiiPiSmmCommunicationRegionTableGuid,
(VOID **) &PiSmmCommunicationRegionTable
|