* Fix segfault in osx

This commit is contained in:
pancake 2010-06-27 22:15:44 +02:00
parent e101e5023d
commit cb5f4f26da

View File

@ -41,6 +41,7 @@ static int rabin_delegate(RThread *th) {
if (rabin_cmd && r_file_exist (r.file->filename)) {
char *nptr, *ptr, *cmd = r_sys_cmd_str (rabin_cmd, NULL, NULL);
ptr = cmd;
if (ptr)
do {
if (th) r_th_lock_enter(th->user);
nptr = strchr (ptr, '\n');