X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b166b11b8612a2428d7b86bd3dd27207a3f60dab..032e971ea180d9e7f9df03887bedd233c8d5c537:/Mach/Inject.cpp diff --git a/Mach/Inject.cpp b/Mach/Inject.cpp index a2c5f04..6eb9dad 100644 --- a/Mach/Inject.cpp +++ b/Mach/Inject.cpp @@ -42,6 +42,7 @@ void InjectLibrary(pid_t pid) { nl[0].n_un.n_name = (char *) "__pthread_set_self"; nlist("/usr/lib/libSystem.B.dylib", nl); nlset(baton->_pthread_set_self, nl, 0); + _assert(baton->_pthread_set_self != NULL); baton->pthread_create = &pthread_create; baton->pthread_join = &pthread_join;