X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_getspecific.c;h=b2a282c6e966c2d3d7381931f910fc7697f8292f;hp=a6ca27d0d50169c3c905adab5dad08f285804662;hb=b6218764ebca59ff5dae0e87b696188c8de0119e;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 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]; }