]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.c
Set Handle to NULL when creating a new handle.
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / PciBusDxe / PciEnumerator.c
index 6c1de3f3e6a8d7821d953de000a7bb24339899b0..bd256cfc8564e334bc338419a6429d59a03397b4 100644 (file)
@@ -126,6 +126,7 @@ PciEnumerator (
 \r
   gFullEnumeration = FALSE;\r
 \r
+  Handle = NULL;\r
   Status = gBS->InstallProtocolInterface (\r
                   &Handle,\r
                   &gEfiPciEnumerationCompleteProtocolGuid,\r