mirror of https://github.com/acidanthera/audk.git
OvmfPkg/AcpiPlatformDxe: fix spurious uninitialized var warning
Commit 4275f38507
("OvmfPkg/AcpiPlatformDxe: alloc blobs from 64-bit
space unless restricted") introduced a variable which is [incorrectly]
identified by GCC as being potentially uninitialized. So let's just set
it to NULL before use.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
406d1d92a8
commit
8f98c76f99
|
@ -1001,6 +1001,7 @@ InstallQemuFwCfgTables (
|
|||
RestorePciDecoding (OriginalPciAttributes, OriginalPciAttributesCount);
|
||||
LoaderEnd = LoaderStart + FwCfgSize / sizeof *LoaderEntry;
|
||||
|
||||
AllocationsRestrictedTo32Bit = NULL;
|
||||
Status = CollectAllocationsRestrictedTo32Bit (
|
||||
&AllocationsRestrictedTo32Bit,
|
||||
LoaderStart,
|
||||
|
|
Loading…
Reference in New Issue