diff options
author | Roland McGrath <roland@gnu.org> | 2003-01-30 20:46:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-01-30 20:46:44 +0000 |
commit | 2806140931582422258904a47d34c744f3157d1e (patch) | |
tree | 65516a7bc69491f36d44f5cadf601b5a1ccf9586 /sysdeps | |
parent | 7ba7c8291adc5ee95b9e5d8715ed3dc747abd024 (diff) | |
download | glibc-2806140931582422258904a47d34c744f3157d1e.tar.gz glibc-2806140931582422258904a47d34c744f3157d1e.tar.xz glibc-2806140931582422258904a47d34c744f3157d1e.zip |
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>.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/dl-tls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/generic/dl-tls.c b/sysdeps/generic/dl-tls.c index 0afe379ae6..1981d2dd98 100644 --- a/sysdeps/generic/dl-tls.c +++ b/sysdeps/generic/dl-tls.c @@ -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. */ |