From df5803bf468808a0fceda1987ae88edff67619a8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 20 Feb 2003 10:10:29 +0000 Subject: Update. 2003-02-20 Ulrich Drepper * pthread_create.c (deallocate_tsd): Clear the entire first block of TSD. * Makefile (tests): Add tst-key4. * tst-key4.c: New file. --- nptl/pthread_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nptl/pthread_create.c') 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; -- cgit v1.2.3