From: Ulrich Drepper Date: Mon, 27 Mar 2000 18:06:35 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc_2-1-91~779 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=670066c3bdd9cc4222c326a76e30eb266660fae5;p=thirdparty%2Fglibc.git Update. 2000-03-27 Ulrich Drepper * locale/programs/localedef.c: Use __malloc_initialize_hook to install mcheck handler. * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory handling problem. --- diff --git a/ChangeLog b/ChangeLog index e4c590f0329..961ca0fd427 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-03-27 Ulrich Drepper + + * locale/programs/localedef.c: Use __malloc_initialize_hook to + install mcheck handler. + + * libio/obprintf.c (_IO_obstack_vprintf): Fix one more memory + handling problem. 2000-03-27 Roland McGrath * stdio-common/tmpfile.c: Use macros. diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c index e129c0c241f..fbd80ccc0fc 100644 --- a/locale/programs/localedef.c +++ b/locale/programs/localedef.c @@ -135,9 +135,6 @@ main (int argc, char *argv[]) struct localedef_t global; int remaining; - /* Enable `malloc' debugging. */ - mcheck_pedantic (NULL); - /* Set initial values for global variables. */ copy_list = NULL; posix_conformance = getenv ("POSIXLY_CORRECT") != NULL; @@ -510,3 +507,14 @@ load_locale (int locale, const char *name, const char *repertoire_name, return result; } + +static void +turn_on_mcheck (void) +{ + /* Enable `malloc' debugging. */ + mcheck (NULL); + /* Use the following line for a more thorough but much slower testing. */ + /* mcheck_pedantic (NULL); */ +} + +void (*__malloc_initialize_hook) (void) = turn_on_mcheck;