From: Jay Freeman (saurik) Date: Wed, 4 Jun 2014 10:24:33 +0000 (-0700) Subject: Initialize address32 out parameter in vm_allocate. X-Git-Tag: v0.9.502~14 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/71a333b38b40125546a243a071484f4710fd50e4 Initialize address32 out parameter in vm_allocate. --- diff --git a/Mach/Memory.hpp b/Mach/Memory.hpp index 47e376d..f523509 100644 --- a/Mach/Memory.hpp +++ b/Mach/Memory.hpp @@ -4,7 +4,7 @@ static kern_return_t cy_vm_allocate(bool broken, vm_map_t target, mach_vm_address_t *address, mach_vm_size_t size, int flags) { if (!broken) return mach_vm_allocate(target, address, size, flags); - vm_address_t address32; + vm_address_t address32(0); kern_return_t value(vm_allocate(target, &address32, size, flags)); *address = address32; return value;