diff options
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r-- | lib/libpthread/thread/thr_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c index d43adf5..f06df6c 100644 --- a/lib/libpthread/thread/thr_init.c +++ b/lib/libpthread/thread/thr_init.c @@ -311,10 +311,13 @@ _libpthread_init(struct pthread *curthread) static void init_main_thread(struct pthread *thread) { + void *p; int i; /* Zero the initial thread structure. */ + p = thread->alloc_addr; memset(thread, 0, sizeof(struct pthread)); + thread->alloc_addr = p; /* Setup the thread attributes. */ thread->attr = _pthread_attr_default; |