]> git.saurik.com Git - cycript.git/commitdiff
Fix creepy "dump master.passwd to stderr" failure.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 11 Mar 2014 22:18:02 +0000 (15:18 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 11 Mar 2014 22:18:02 +0000 (15:18 -0700)
Mach/Inject.cpp

index c70e83cc9c7432a90a66bcf0b2f291f92d622d41..6ca0378b85075411ac5d2d4591173b6c57003679 100644 (file)
@@ -207,6 +207,7 @@ void InjectLibrary(pid_t pid) {
 
     baton->dyld = info.all_image_info_addr;
     baton->pid = getpid();
+    memset(baton->error, 0, sizeof(baton->error));
     memcpy(baton->library, library, length);
 
     mach_vm_size_t size(depth + Stack_);