diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-08-19 09:03:42 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-08-19 09:03:42 +0000 |
commit | cbd871ad41f819cb6c0667a2886d6438ead47c61 (patch) | |
tree | f9842099fd1ffc83a547c40f4848be274c62c4a0 | |
parent | 6f3dd43ee609156bff3f2928cd93621c35d13cff (diff) | |
download | newlib-cbd871ad41f819cb6c0667a2886d6438ead47c61.zip newlib-cbd871ad41f819cb6c0667a2886d6438ead47c61.tar.gz newlib-cbd871ad41f819cb6c0667a2886d6438ead47c61.tar.bz2 |
* libc/stdlib/__atexit.c (__register_exitproc): NULL-ify
_on_exit_args_ptr when creating a new _atexit structure while
_REENT_SMALL is defined.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/stdlib/__atexit.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index a244668..25d30d0 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2013-08-19 Meador Inge <meadori@codesourcery.com> + + * libc/stdlib/__atexit.c (__register_exitproc): NULL-ify + _on_exit_args_ptr when creating a new _atexit structure while + _REENT_SMALL is defined. + 2013-08-12 Bin Cheng <bin.cheng@arm.com> * libc/configure.in (--enable-newlib-wchar-orient): Remove. diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c index d36a1a4..18edc8c 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 } |