]> git.saurik.com Git - cycript.git/blobdiff - Mach/Inject.cpp
Fix creepy "dump master.passwd to stderr" failure.
[cycript.git] / 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_);