Core:macOS: Initialize all address variables passed to vm_map

This commit is contained in:
TellowKrinkle 2025-05-14 19:17:55 -05:00 committed by lightningterror
parent 70e232cab3
commit d0411d7ddf
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ std::unique_ptr<SharedMemoryMappingArea> SharedMemoryMappingArea::Create(size_t
{
pxAssertRel(Common::IsAlignedPow2(size, __pagesize), "Size is page aligned");
mach_vm_address_t alloc;
mach_vm_address_t alloc = 0;
const kern_return_t res =
mach_vm_map(mach_task_self(), &alloc, size, 0, VM_FLAGS_ANYWHERE,
MEMORY_OBJECT_NULL, 0, false, VM_PROT_NONE, VM_PROT_NONE, VM_INHERIT_NONE);