(__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
This commit is contained in:
parent
2a008da434
commit
abc0360c37
1 changed files with 2 additions and 2 deletions
|
@ -129,8 +129,8 @@ __gthread_objc_init_thread_system(void)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
return -1;
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* Close the threads subsystem. */
|
||||
|
|
Loading…
Add table
Reference in a new issue