(__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear what the return value is.

(__gthread_objc_init_thread_system): If pthread_key_create fails, it's
not clear what the return value is.  This obvious fix makes sure it
always returns -1 if a problem occurs.

From-SVN: r43091
This commit is contained in:
Nicola Pero 2001-06-09 18:05:09 +00:00 committed by Ovidiu Predescu
parent 2a008da434
commit abc0360c37
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ __gthread_objc_init_thread_system(void)
return 0;
}
}
else
return -1;
return -1;
}
/* Close the threads subsystem. */