From cc97b1e5f0c84830f4937f2417928dd4d5f858b8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 11 Oct 1999 04:32:44 +0000 Subject: Update. * stdlib/atexit.c (initial): New variable. Use to initialize __exit_funcs. * stdlib/exit.c (exit): Beware to not free statically allocale list element [PR libc/1305]. --- stdlib/atexit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/atexit.c b/stdlib/atexit.c index 80cd79ff6a..e9648d60e1 100644 --- a/stdlib/atexit.c +++ b/stdlib/atexit.c @@ -40,7 +40,8 @@ atexit (void (*func) (void)) __libc_lock_define_initialized (static, lock) -struct exit_function_list *__exit_funcs; +static struct exit_function_list initial; +struct exit_function_list *__exit_funcs = &initial; struct exit_function * __new_exitfn (void) -- cgit 1.4.1