mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
MdeModulePkg: Fix recently introduced uninitialized variable usage.
Address the build regressions, introduced in #11724, #11688, #11686 #11685. These build regressions are for uninitialized variables before use. Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
This commit is contained in:
parent
947ed6b34a
commit
ede299f241
4 changed files with 13 additions and 4 deletions
|
|
@ -1607,11 +1607,15 @@ GetFullSmramRanges (
|
|||
UINTN MaxCount;
|
||||
BOOLEAN Rescan;
|
||||
|
||||
SmmConfiguration = NULL;
|
||||
TempSmramRanges = NULL;
|
||||
SmramReservedRanges = NULL;
|
||||
SmramRanges = NULL;
|
||||
|
||||
//
|
||||
// Get SMM Configuration Protocol if it is present.
|
||||
//
|
||||
SmmConfiguration = NULL;
|
||||
Status = gBS->LocateProtocol (&gEfiSmmConfigurationProtocolGuid, NULL, (VOID **)&SmmConfiguration);
|
||||
Status = gBS->LocateProtocol (&gEfiSmmConfigurationProtocolGuid, NULL, (VOID **)&SmmConfiguration);
|
||||
|
||||
//
|
||||
// Get SMRAM information.
|
||||
|
|
|
|||
|
|
@ -699,6 +699,7 @@ BdsEntry (
|
|||
|
||||
HotkeyTriggered = NULL;
|
||||
Status = EFI_SUCCESS;
|
||||
BootSuccess = FALSE;
|
||||
|
||||
//
|
||||
// Insert the performance probe
|
||||
|
|
|
|||
|
|
@ -795,6 +795,7 @@ CompareNameElementDefault (
|
|||
|
||||
AppendString = NULL;
|
||||
NvConfigExist = NULL;
|
||||
Status = EFI_OUT_OF_RESOURCES;
|
||||
//
|
||||
// Make NvConfigPtr point to the first <NvConfig> with AltConfigHdr in DefaultAltCfgResp.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -430,8 +430,11 @@ CreateStorage (
|
|||
EFI_GUID *StorageGuid;
|
||||
CHAR8 *StorageName;
|
||||
|
||||
UnicodeString = NULL;
|
||||
StorageName = NULL;
|
||||
UnicodeString = NULL;
|
||||
StorageName = NULL;
|
||||
BrowserStorage = NULL;
|
||||
Storage = NULL;
|
||||
|
||||
switch (StorageType) {
|
||||
case EFI_HII_VARSTORE_BUFFER:
|
||||
StorageGuid = (EFI_GUID *)(CHAR8 *)&((EFI_IFR_VARSTORE *)OpCodeData)->Guid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue