summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/pthreads/pthread.c')
-rw-r--r--components/pthreads/pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/pthreads/pthread.c b/components/pthreads/pthread.c
index fc312dfd11..c4743c0a91 100644
--- a/components/pthreads/pthread.c
+++ b/components/pthreads/pthread.c
@@ -65,6 +65,7 @@ int pthread_create (pthread_t *tid, const pthread_attr_t *attr,
ptd->canceled = 0;
ptd->cancelstate = PTHREAD_CANCEL_DISABLE;
ptd->canceltype = PTHREAD_CANCEL_DEFERRED;
+ ptd->magic = PTHREAD_MAGIC;
if (attr != RT_NULL) ptd->attr = *attr;
else