summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_init.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-04-30 15:05:17 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-04-30 15:05:17 +0000
commitd143dde4381aa8a80b079f5f4fc8151ac9dd0abb (patch)
tree9350a8aef34768a87292c8deae80e7fc8f1af999 /lib/libpthread/thread/thr_init.c
parent2c50682195b096c4717dbdd5b19b187f1447eb5e (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_init.c')
-rw-r--r--lib/libpthread/thread/thr_init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_init.c b/lib/libpthread/thread/thr_init.c
index d43adf56bb12..f06df6c749b5 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;