projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9806fc
)
simplify pthread_key_delete
author
Rich Felker
<dalias@aerifal.cx>
Thu, 31 Mar 2011 23:06:22 +0000
(19:06 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 31 Mar 2011 23:06:22 +0000
(19:06 -0400)
calling this function on an uninitialized key value is UB, so there is
no need to check that the table pointer was initialized.
src/thread/pthread_key_delete.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_key_delete.c
b/src/thread/pthread_key_delete.c
index 4914ebb49092a2d8c1cfab0a3565712e7fa5239a..de964567f94ab5f19bd67ecb41906b88eb695819 100644
(file)
--- a/
src/thread/pthread_key_delete.c
+++ b/
src/thread/pthread_key_delete.c
@@
-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;
}