diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-08-19 13:03:42 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-08-19 13:03:42 +0400 |
commit | cbd871ad41f819cb6c0667a2886d6438ead47c61 (patch) | |
tree | f9842099fd1ffc83a547c40f4848be274c62c4a0 /newlib/libc | |
parent | 6f3dd43ee609156bff3f2928cd93621c35d13cff (diff) |
* libc/stdlib/__atexit.c (__register_exitproc): NULL-ify
_on_exit_args_ptr when creating a new _atexit structure while
_REENT_SMALL is defined.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/stdlib/__atexit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c index d36a1a4e5..18edc8c91 100644 --- a/newlib/libc/stdlib/__atexit.c +++ b/newlib/libc/stdlib/__atexit.c @@ -104,6 +104,8 @@ _DEFUN (__register_exitproc, #ifndef _REENT_SMALL p->_on_exit_args._fntypes = 0; p->_on_exit_args._is_cxa = 0; +#else + p->_on_exit_args_ptr = NULL; #endif #endif } |