Commit abc0360c by Nicola Pero Committed by Ovidiu Predescu

(__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear…

(__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
parent 2a008da4
......@@ -129,8 +129,8 @@ __gthread_objc_init_thread_system(void)
return 0;
}
}
else
return -1;
return -1;
}
/* Close the threads subsystem. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment