diff options
author | ovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-09 18:05:09 +0000 |
---|---|---|
committer | ovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-09 18:05:09 +0000 |
commit | 02cb961982d3cdfec71bf67faae4b05d11417323 (patch) | |
tree | 2365b561198aaa95ca83324700d67b4a0a398b6b /gcc/gthr-posix.h | |
parent | 476d3c6a8609356bb90dd80cb99e39294200b9ef (diff) | |
download | gcc-02cb961982d3cdfec71bf67faae4b05d11417323.tar.gz |
(__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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43091 138bc75d-0d04-0410-961f-82ee72b054a4
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 2042ebe0563..eae8f3e12ab 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. */ |