diff options
Diffstat (limited to 'libpthread/pthread/pt-alloc.c')
-rw-r--r-- | libpthread/pthread/pt-alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/pthread/pt-alloc.c b/libpthread/pthread/pt-alloc.c index 6af2da9..c63801f 100644 --- a/libpthread/pthread/pt-alloc.c +++ b/libpthread/pthread/pt-alloc.c @@ -123,7 +123,7 @@ __pthread_alloc (struct __pthread **pthread) } /* Allocate a new thread structure. */ - new = malloc (sizeof (struct __pthread)); + new = calloc (sizeof (struct __pthread), 1); if (new == NULL) return ENOMEM; |