diff options
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r-- | pthread/pt-create.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c index 386891e..8b95a4b 100644 --- a/pthread/pt-create.c +++ b/pthread/pt-create.c @@ -151,7 +151,10 @@ __pthread_create_internal (struct __pthread **thread, #ifdef ENABLE_TLS pthread->tcb = _dl_allocate_tls (NULL); if (!pthread->tcb) - goto failed_thread_tls_alloc; + { + err = ENOMEM; + goto failed_thread_tls_alloc; + } pthread->tcb->tcb = pthread->tcb; #endif /* ENABLE_TLS */ |