summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/AcpiPlatformDxe
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-06-08 19:03:04 +0000
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2017-06-09 08:57:39 +0000
commit8f98c76f992be0d22cafaf302ee95350cef3f0c7 (patch)
tree3f4e1ae10e4c20a2a8557fc288c684ec0e175dfb /OvmfPkg/AcpiPlatformDxe
parent406d1d92a8d8daa50d65296096db725e6f164432 (diff)
downloadedk2-8f98c76f992be0d22cafaf302ee95350cef3f0c7.tar.gz
edk2-8f98c76f992be0d22cafaf302ee95350cef3f0c7.tar.bz2
edk2-8f98c76f992be0d22cafaf302ee95350cef3f0c7.zip
OvmfPkg/AcpiPlatformDxe: fix spurious uninitialized var warning
Commit 4275f38507a4 ("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>
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe')
-rw-r--r--OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c b/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c
index 98be36c64b..a0b1cfd2be 100644
--- a/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c
+++ b/OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c
@@ -1001,6 +1001,7 @@ InstallQemuFwCfgTables (
RestorePciDecoding (OriginalPciAttributes, OriginalPciAttributesCount);
LoaderEnd = LoaderStart + FwCfgSize / sizeof *LoaderEntry;
+ AllocationsRestrictedTo32Bit = NULL;
Status = CollectAllocationsRestrictedTo32Bit (
&AllocationsRestrictedTo32Bit,
LoaderStart,