summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2016-06-30 17:04:37 +0800
committerHao Wu <hao.a.wu@intel.com>2016-06-30 20:38:19 +0800
commit473ba62e32895187367338a662c9c7c75a0f5616 (patch)
tree9f6c7a03d5ad28329c2a81a2d78e10569b66edf5
parent29658445a7191bcb68881f05722a2568bbbc6d2b (diff)
downloadedk2-473ba62e32895187367338a662c9c7c75a0f5616.tar.gz
edk2-473ba62e32895187367338a662c9c7c75a0f5616.tar.bz2
edk2-473ba62e32895187367338a662c9c7c75a0f5616.zip
SecurityPkg VariableInfo: Fix GCC build failure
GCC build failure: 'RealCommSize' may be used uninitialized (This commit integrate changes in 05b39efb669eaa173a76e58daf8e65bce2e0299e from master.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com>
-rw-r--r--SecurityPkg/Application/VariableInfo/VariableInfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/SecurityPkg/Application/VariableInfo/VariableInfo.c b/SecurityPkg/Application/VariableInfo/VariableInfo.c
index e03d024140..0730e2ebff 100644
--- a/SecurityPkg/Application/VariableInfo/VariableInfo.c
+++ b/SecurityPkg/Application/VariableInfo/VariableInfo.c
@@ -108,6 +108,7 @@ PrintInfoFromSmm (
}
CommBuffer = NULL;
+ RealCommSize = 0;
Status = EfiGetSystemConfigurationTable (
&gEdkiiPiSmmCommunicationRegionTableGuid,
(VOID **) &PiSmmCommunicationRegionTable