OcAppleBootPolicyLib: Fixed uninitialised warning
@@ -1288,6 +1288,12 @@ OcBootPolicyGetApfsRecoveryFilePath (
Result = EFI_NOT_FOUND;
for (Index = 0; Index < NoHandles; ++Index) {
+ DEBUG_CODE_BEGIN ();
+ ZeroMem (&ContainerGuid2, sizeof (ContainerGuid2));
+ ZeroMem (&VolumeGuid2, sizeof (VolumeGuid2));
+ VolumeRole2 = 0;
+ DEBUG_CODE_END ();
+
Status = InternalGetApfsVolumeInfo (
HandleBuffer[Index],
&ContainerGuid2,
@@ -1295,6 +1301,7 @@ OcBootPolicyGetApfsRecoveryFilePath (
&VolumeRole2
);
+ DEBUG_CODE_BEGIN ();
DEBUG ((
DEBUG_BULK_INFO,
"OCBP: APFS recovery info %u/%u due to %g/%g/%X - %r\n",
@@ -1305,6 +1312,7 @@ OcBootPolicyGetApfsRecoveryFilePath (
(UINT32) VolumeRole2,
Status
));
+ DEBUG_CODE_END ();
if (EFI_ERROR (Status)
|| VolumeRole2 != APPLE_APFS_VOLUME_ROLE_RECOVERY
