diff options
author | Liming Gao <liming.gao@intel.com> | 2017-12-25 18:24:19 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2017-12-25 18:47:15 +0800 |
commit | 718b6fe9a3965defcabc0f0216593af46329c071 (patch) | |
tree | d117ba1b4245d4f91c721a8242e8532ec15c9d91 | |
parent | 7c73626513238176bdd16dca14fcf3f9e10bcc81 (diff) | |
download | edk2-718b6fe9a3965defcabc0f0216593af46329c071.zip edk2-718b6fe9a3965defcabc0f0216593af46329c071.tar.gz edk2-718b6fe9a3965defcabc0f0216593af46329c071.tar.bz2 |
MdeModulePkg HiiDataBaseDxe: Initialize the local variable before reference
Make VS2012x86 and GCC48 pass build
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/Database.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c index ffcd9ec..7441c19 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Database.c @@ -739,6 +739,8 @@ FindQuestionDefaultSetting ( if (VariableHeader == NULL) {
return EFI_NOT_FOUND;
}
+ StartBit = 0;
+ EndBit = 0;
ByteOffset = IfrQuestionHdr->VarStoreInfo.VarOffset;
if (BitFieldQuestion) {
BitOffset = IfrQuestionHdr->VarStoreInfo.VarOffset;
@@ -818,6 +820,7 @@ UpdateDefaultSettingInFormPackage ( ZeroMem (&VarStoreQuestionHeader, sizeof (VarStoreQuestionHeader));
PackageLength = FormPackage->FormPkgHdr.Length - sizeof (EFI_HII_PACKAGE_HEADER);
+ Width = 0;
IfrOffset = 0;
IfrScope = 0;
IfrOpHdr = (EFI_IFR_OP_HEADER *) FormPackage->IfrData;
|