* libc/stdlib/__atexit.c (__register_exitproc): NULL-ify

_on_exit_args_ptr when creating a new _atexit structure while
	_REENT_SMALL is defined.
This commit is contained in:
Corinna Vinschen 2013-08-19 09:03:42 +00:00
parent 6f3dd43ee6
commit cbd871ad41
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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
}