mirror of git://sourceware.org/git/glibc.git
2003-01-30 Roland McGrath <roland@redhat.com>
* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Move check for null argument before all else. Reported by Martin Schwidefsky <schwidefsky@de.ibm.com>.
This commit is contained in:
parent
7ba7c8291a
commit
2806140931
|
@ -329,14 +329,14 @@ void *
|
|||
internal_function
|
||||
_dl_allocate_tls_init (void *result)
|
||||
{
|
||||
dtv_t *dtv = GET_DTV (result);
|
||||
struct dtv_slotinfo_list *listp;
|
||||
size_t total = 0;
|
||||
|
||||
if (result == NULL)
|
||||
/* The memory allocation failed. */
|
||||
return NULL;
|
||||
|
||||
dtv_t *dtv = GET_DTV (result);
|
||||
struct dtv_slotinfo_list *listp;
|
||||
size_t total = 0;
|
||||
|
||||
/* We have to look prepare the dtv for all currently loaded
|
||||
modules using TLS. For those which are dynamically loaded we
|
||||
add the values indicating deferred allocation. */
|
||||
|
|
Loading…
Reference in New Issue