Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-08-19 13:03:42 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-08-19 13:03:42 +0400
commitcbd871ad41f819cb6c0667a2886d6438ead47c61 (patch)
treef9842099fd1ffc83a547c40f4848be274c62c4a0
parent6f3dd43ee609156bff3f2928cd93621c35d13cff (diff)
* 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/ChangeLog6
-rw-r--r--newlib/libc/stdlib/__atexit.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index a244668fe..25d30d08c 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 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
}