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:
Roland McGrath 2003-01-30 20:46:44 +00:00
parent 7ba7c8291a
commit 2806140931
1 changed files with 4 additions and 4 deletions

View File

@ -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. */