aboutsummaryrefslogtreecommitdiff
path: root/nptl/pthread_create.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-02-20 10:10:29 +0000
committerUlrich Drepper <drepper@redhat.com>2003-02-20 10:10:29 +0000
commitdf5803bf468808a0fceda1987ae88edff67619a8 (patch)
tree547953e7f94fda7bb2360c5b348e010510681cee /nptl/pthread_create.c
parent01b2885290fdbb02bfe4f92f0873419abada5952 (diff)
downloadglibc-df5803bf468808a0fceda1987ae88edff67619a8.tar
glibc-df5803bf468808a0fceda1987ae88edff67619a8.tar.gz
glibc-df5803bf468808a0fceda1987ae88edff67619a8.tar.bz2
glibc-df5803bf468808a0fceda1987ae88edff67619a8.zip
Update.
2003-02-20 Ulrich Drepper <drepper@redhat.com> * pthread_create.c (deallocate_tsd): Clear the entire first block of TSD. * Makefile (tests): Add tst-key4. * tst-key4.c: New file.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r--nptl/pthread_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 74f3e9a82a..89152ffeb9 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -162,8 +162,8 @@ deallocate_tsd (struct pthread *pd)
}
else
/* Clear the memory of the first block for reuse. */
- memset (pd->specific[0], '\0',
- sizeof (struct pthread_key_data));
+ memset (&pd->specific_1stblock, '\0',
+ sizeof (pd->specific_1stblock));
}
else
idx += PTHREAD_KEY_1STLEVEL_SIZE;