From: Nicola Pero Date: Sat, 9 Jun 2001 18:05:09 +0000 (+0000) Subject: (__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear... X-Git-Tag: prereleases/libstdc++-3.0.95~3908 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abc0360c37b253ec89fe1976cffe76b0fa87f1da;p=thirdparty%2Fgcc.git (__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 --- diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 2042ebe05639..eae8f3e12ab6 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -129,8 +129,8 @@ __gthread_objc_init_thread_system(void) return 0; } } - else - return -1; + + return -1; } /* Close the threads subsystem. */