]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformPei: add missing auto variable initialization
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 13 Jul 2016 14:50:35 +0000 (16:50 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 13 Jul 2016 15:06:17 +0000 (17:06 +0200)
commit7ffced92a7b6e5a0eb4433123b3973c635da7355
tree83f27ced9a833564f4a5e62191cbe626b1b646d6
parent28f8d28faabf50a82ef8d137308592c64ea9e2b6
OvmfPkg/PlatformPei: add missing auto variable initialization

The E820EntriesCount variable in XenPublishRamRegions() may be
referenced without being initialized on RELEASE builds, since the
ASSERT that fires if the call to XenGetE820Map() fails is compiled
out in that case. So initialize it to 0.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
OvmfPkg/PlatformPei/Xen.c