From 6f795d6a802bacf0322be00e51567f6090cbcbca Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sat, 22 Aug 2020 09:29:26 +0300 Subject: [PATCH] OcAppleKernelLib: Fix memory initialisation --- Library/OcAppleKernelLib/KernelReader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/OcAppleKernelLib/KernelReader.c b/Library/OcAppleKernelLib/KernelReader.c index 9014b698..7d33d145 100644 --- a/Library/OcAppleKernelLib/KernelReader.c +++ b/Library/OcAppleKernelLib/KernelReader.c @@ -411,6 +411,7 @@ ReadAppleKernel ( ASSERT (KernelSize != NULL); ASSERT (AllocatedSize != NULL); + *Is32Bit = FALSE; *KernelSize = 0; *AllocatedSize = KERNEL_HEADER_SIZE; *Kernel = AllocatePool (*AllocatedSize);