projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix failure of strrchr(str, 0)
[musl]
/
src
/
thread
/
pthread_getspecific.c
diff --git
a/src/thread/pthread_getspecific.c
b/src/thread/pthread_getspecific.c
index
a6ca27d
..
b2a282c
100644
(file)
--- a/
src/thread/pthread_getspecific.c
+++ b/
src/thread/pthread_getspecific.c
@@
-2,7
+2,6
@@
void *pthread_getspecific(pthread_key_t k)
{
- struct pthread *self = pthread_self();
- if (!self->tsd) return 0;
+ struct pthread *self = __pthread_self();
return self->tsd[k];
}