mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
28f8d28faa
commit
7ffced92a7
|
@ -171,6 +171,7 @@ XenPublishRamRegions (
|
||||||
//
|
//
|
||||||
// Parse RAM in E820 map
|
// Parse RAM in E820 map
|
||||||
//
|
//
|
||||||
|
E820EntriesCount = 0;
|
||||||
Status = XenGetE820Map (&E820Map, &E820EntriesCount);
|
Status = XenGetE820Map (&E820Map, &E820EntriesCount);
|
||||||
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
Loading…
Reference in New Issue