]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/AcpiPlatformDxe: fix spurious uninitialized var warning
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 8 Jun 2017 19:03:04 +0000 (19:03 +0000)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 9 Jun 2017 08:57:39 +0000 (08:57 +0000)
commit8f98c76f992be0d22cafaf302ee95350cef3f0c7
tree3f4e1ae10e4c20a2a8557fc288c684ec0e175dfb
parent406d1d92a8d8daa50d65296096db725e6f164432
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>
OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c