diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2003-10-22 08:45:01 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2003-10-22 08:45:01 +0000 |
commit | 63a823f8f40d4e60eeaaf80570e9991e81c2ef18 (patch) | |
tree | 5d8682acdc4f449b3738f896c0368963576227b9 /newlib/libc | |
parent | ac06287b30ea1b1a49adc0a65e2536a082f33bde (diff) | |
download | newlib-63a823f8f40d4e60eeaaf80570e9991e81c2ef18.zip newlib-63a823f8f40d4e60eeaaf80570e9991e81c2ef18.tar.gz newlib-63a823f8f40d4e60eeaaf80570e9991e81c2ef18.tar.bz2 |
* libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/stdlib/exit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c index dad2861..be96488 100644 --- a/newlib/libc/stdlib/exit.c +++ b/newlib/libc/stdlib/exit.c @@ -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) |