simplify pthread_key_delete
calling this function on an uninitialized key value is UB, so there is no need to check that the table pointer was initialized.
This commit is contained in:
parent
c9806fc2f9
commit
c1b39b203d
1 changed files with 1 additions and 1 deletions
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
int pthread_key_delete(pthread_key_t k)
|
||||
{
|
||||
if (libc.tsd_keys) libc.tsd_keys[k] = 0;
|
||||
libc.tsd_keys[k] = 0;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue