diff options
Diffstat (limited to 'mdk-stage1/dietlibc/libpthread/pthread_testcancel.c')
-rw-r--r-- | mdk-stage1/dietlibc/libpthread/pthread_testcancel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/dietlibc/libpthread/pthread_testcancel.c b/mdk-stage1/dietlibc/libpthread/pthread_testcancel.c index 68f91e743..4151faca3 100644 --- a/mdk-stage1/dietlibc/libpthread/pthread_testcancel.c +++ b/mdk-stage1/dietlibc/libpthread/pthread_testcancel.c @@ -10,7 +10,7 @@ void pthread_testcancel() thread=__thread_self(); - if (thread->canceled) { + if (thread && thread->canceled) { pthread_exit(PTHREAD_CANCELED); } } |