diff options
author | Nicola Pero <nicola@brainstorm.co.uk> | 2001-06-09 18:05:09 +0000 |
---|---|---|
committer | Ovidiu Predescu <ovidiu@gcc.gnu.org> | 2001-06-09 18:05:09 +0000 |
commit | abc0360c37b253ec89fe1976cffe76b0fa87f1da (patch) | |
tree | 2365b561198aaa95ca83324700d67b4a0a398b6b /gcc/gthr-posix.h | |
parent | 2a008da43429a550f60eeaee852857387a406e44 (diff) | |
download | gcc-abc0360c37b253ec89fe1976cffe76b0fa87f1da.zip gcc-abc0360c37b253ec89fe1976cffe76b0fa87f1da.tar.gz gcc-abc0360c37b253ec89fe1976cffe76b0fa87f1da.tar.bz2 |
(__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
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r-- | gcc/gthr-posix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 2042ebe..eae8f3e 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. */ |