]> git.saurik.com Git - cycript.git/commitdiff
Initialize address32 out parameter in vm_allocate.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 4 Jun 2014 10:24:33 +0000 (03:24 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 4 Jun 2014 10:24:33 +0000 (03:24 -0700)
Mach/Memory.hpp

index 47e376d48c5a60c19a401f0399fab414196e80e4..f523509ca4cf61c90d8817b6a6621458359ccf3f 100644 (file)
@@ -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;