diff options
author | Star Zeng <star.zeng@intel.com> | 2016-06-29 22:22:57 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2016-06-30 17:05:40 +0800 |
commit | 05b39efb669eaa173a76e58daf8e65bce2e0299e (patch) | |
tree | b12ecc74a461a1e4a7c50329cf81543d23a6693b | |
parent | 5f928b41aa65b98141b1956ebcf9ce9267f532d3 (diff) | |
download | edk2-platforms-05b39efb669eaa173a76e58daf8e65bce2e0299e.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>
-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
|