diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2003-10-22 12:45:01 +0400 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2003-10-22 12:45:01 +0400 |
commit | 63a823f8f40d4e60eeaaf80570e9991e81c2ef18 (patch) | |
tree | 5d8682acdc4f449b3738f896c0368963576227b9 /newlib/libc/stdlib | |
parent | ac06287b30ea1b1a49adc0a65e2536a082f33bde (diff) |
* libc/stdlib/exit.c (exit): Handle null _GLOBAL_REENT->_atexits.
Diffstat (limited to 'newlib/libc/stdlib')
-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 dad2861d2..be96488c8 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) |