]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Dxe/UefiEfiIfrSupportLib/UefiIfrString.c
Refine some code to make the code run safely.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / UefiEfiIfrSupportLib / UefiIfrString.c
index 01bad650010edd980677e910738eb297f18afa1f..0a5739965aa84009a0ea7207f2c801b57ac93742 100644 (file)
@@ -489,6 +489,7 @@ Returns:
   EFI_HII_HANDLE  *HiiHandleBuffer;\r
   EFI_GUID        Guid;\r
 \r
+  HiiHandleBuffer = NULL;\r
   Status = GetHiiHandles (&HandleBufferLen, &HiiHandleBuffer);\r
   if (EFI_ERROR(Status)) {\r
     return Status;\r