fix crash in pthread_testcancel if pthread_self has not been called

This commit is contained in:
Rich Felker 2011-09-27 18:39:49 -04:00
parent bc244533cc
commit 823813e3f4
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ static void cancel_handler(int sig, siginfo_t *si, void *ctx)
void __testcancel()
{
pthread_t self = __pthread_self();
pthread_t self = pthread_self();
if (self->cancel && !self->canceldisable)
__cancel();
}