1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* pthread_create.c (deallocate_tsd): Reset found_nonzero at the
	beginning of the loop.  Clear the entire first block of TSD.
This commit is contained in:
Ulrich Drepper
2003-02-20 10:18:12 +00:00
parent 12fd3c5f66
commit c5acd3d77e
3 changed files with 6 additions and 3 deletions

View File

@ -124,6 +124,9 @@ deallocate_tsd (struct pthread *pd)
size_t cnt;
size_t idx;
/* So far no new nonzero data entry. */
found_nonzero = false;
for (cnt = idx = 0; cnt < PTHREAD_KEY_1STLEVEL_SIZE; ++cnt)
if (pd->specific[cnt] != NULL)
{