(deallocate_tsd): Reset found_nonzero at the beginning of the loop.
authordrepper <drepper>
Thu, 20 Feb 2003 10:17:43 +0000 (10:17 +0000)
committerdrepper <drepper>
Thu, 20 Feb 2003 10:17:43 +0000 (10:17 +0000)
nptl/pthread_create.c

index 89152ff..bac7455 100644 (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)
              {