about summary refs log tree commit diff
path: root/src/thread/pthread_getspecific.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/pthread_getspecific.c')
-rw-r--r--src/thread/pthread_getspecific.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/thread/pthread_getspecific.c b/src/thread/pthread_getspecific.c
index a6ca27d0..b2a282c6 100644
--- 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];
 }