]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 22 Oct 2003 08:45:01 +0000 (08:45 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Wed, 22 Oct 2003 08:45:01 +0000 (08:45 +0000)
newlib/ChangeLog
newlib/libc/stdlib/exit.c

index 74495c317748a2bdd122c35f5fbb56e72c8716d4..0af6c34a6f0bfa9cbd9fa766094dc48e3bb1eb58 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-22  Richard Sandiford  <rsandifo@redhat.com>
+
+       * libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
+
 2003-10-20  Bob Wilson  <bob.wilson@acm.org>
 
        * libc/locale/locale.c: Use double quotes in code.
index dad2861d2aca1c3cd449b03c7f34dcd2cff3674a..be96488c876421ac694d76acee9d9d4ec23dc216 100644 (file)
@@ -83,7 +83,7 @@ _DEFUN (exit, (code),
     }
 #else
   p = _GLOBAL_REENT->_atexit;
-  do
+  while (p)
     {
       args = & p->_on_exit_args;
   
@@ -95,7 +95,6 @@ _DEFUN (exit, (code),
 
       p = p->_next;
     }
-  while (p);
 #endif
 
   if (_GLOBAL_REENT->__cleanup)
This page took 0.043162 seconds and 5 git commands to generate.