OSDN Git Service

(__gthread_objc_init_thread_system): If pthread_key_create fails, it's
authorovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jun 2001 18:05:09 +0000 (18:05 +0000)
committerovidiu <ovidiu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 9 Jun 2001 18:05:09 +0000 (18:05 +0000)
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

gcc/gthr-posix.h

index 2042ebe..eae8f3e 100644 (file)
@@ -129,8 +129,8 @@ __gthread_objc_init_thread_system(void)
             return 0;
         }
     }
-  else
-    return -1;
+
+  return -1;
 }
 
 /* Close the threads subsystem. */