diff --git a/src/system/libroot/posix/pthread/pthread.c b/src/system/libroot/posix/pthread/pthread.c index b702de4863..ffd1f5a4d4 100644 --- a/src/system/libroot/posix/pthread/pthread.c +++ b/src/system/libroot/posix/pthread/pthread.c @@ -86,6 +86,8 @@ __allocate_pthread(void *data) thread->cleanup_handlers = NULL; thread->flags = 0; + memset(thread->specific, 0, sizeof(thread->specific)); + return thread; }