summaryrefslogtreecommitdiff
path: root/stdlib/atexit.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/atexit.c')
-rw-r--r--stdlib/atexit.c3
1 files changed, 2 insertions, 1 deletions
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)