]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Mem/HeapGuard.c
MdeModulePkg/Mem: Initialize the variable MapMemory
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Mem / HeapGuard.c
index 9477b94044ba92984f9016e165544e9920b721df..b4cb48843fb757c6ffb712c32a07eae4df0cdedf 100644 (file)
@@ -225,6 +225,8 @@ FindGuardedMemoryMap (
   UINTN                   BitsToUnitEnd;\r
   EFI_STATUS              Status;\r
 \r
+  MapMemory = 0;\r
+\r
   //\r
   // Adjust current map table depth according to the address to access\r
   //\r