diff --git a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c index 37ba341e60..23bf2026d4 100644 --- a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c +++ b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c @@ -574,6 +574,7 @@ GetCapsuleDescriptors ( TempVarName = NULL; CapsuleVarName[0] = 0; ValidIndex = 0; + CapsuleDataPtr64 = 0; Status = PeiServicesLocatePpi ( &gEfiPeiReadOnlyVariable2PpiGuid, @@ -745,6 +746,7 @@ CapsuleCoalesce ( Index = 0; VariableCount = 0; CapsuleVarName[0] = 0; + CapsuleDataPtr64 = 0; // // Someone should have already ascertained the boot mode. If it's not