2002-08-19  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
	immediately if result == NULL.

	* locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
This commit is contained in:
Ulrich Drepper 2002-08-20 00:23:31 +00:00
parent 46615777f5
commit b68364367b
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-08-19 Ulrich Drepper <drepper@redhat.com>
* sysdeps/generic/dl-tls.c (_dl_allocate_tls_init): Return
immediately if result == NULL.
2002-08-16 Jakub Jelinek <jakub@redhat.com> 2002-08-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/alpha/fpu/libm-test-ulps: Regenerate. * sysdeps/alpha/fpu/libm-test-ulps: Regenerate.
@ -14,7 +19,7 @@
2002-08-16 Jakub Jelinek <jakub@redhat.com> 2002-08-16 Jakub Jelinek <jakub@redhat.com>
* locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix * locale/loadarchive.c (_nl_load_locale_from_archive): Braino fix
in change before last: MAX -> MIN. in change before last: MAX -> MIN.
2002-08-15 Roland McGrath <roland@redhat.com> 2002-08-15 Roland McGrath <roland@redhat.com>

View File

@ -240,7 +240,7 @@ _dl_allocate_tls_storage (void)
return result; return result;
} }
INTDEF(_dl_allocate_tls)
void * void *
internal_function internal_function
@ -250,6 +250,10 @@ _dl_allocate_tls_init (void *result)
struct dtv_slotinfo_list *listp; struct dtv_slotinfo_list *listp;
size_t total = 0; size_t total = 0;
if (result == NULL)
/* The memory allocation failed. */
return NULL;
/* We have to look prepare the dtv for all currently loaded /* We have to look prepare the dtv for all currently loaded
modules using TLS. For those which are dynamically loaded we modules using TLS. For those which are dynamically loaded we
add the values indicating deferred allocation. */ add the values indicating deferred allocation. */
@ -315,6 +319,8 @@ _dl_allocate_tls (void)
{ {
return _dl_allocate_tls_init (_dl_allocate_tls_storage ()); return _dl_allocate_tls_init (_dl_allocate_tls_storage ());
} }
INTDEF(_dl_allocate_tls)
void void
internal_function internal_function