diff options
Diffstat (limited to 'newlib/libc/stdlib/exit.c')
-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) |