]> git.saurik.com Git - cycript.git/blobdiff - Mach/Inject.cpp
Redid the trampoline generator in what will hopefully be a more portable fashion.
[cycript.git] / Mach / Inject.cpp
index a2c5f045c3abee148259ec3d255c43596f1c38cb..6eb9dad11246bc8d71bdc8652a275f031e6413b2 100644 (file)
@@ -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;