diff options
Diffstat (limited to 'lib/libc/exit.c')
-rw-r--r-- | lib/libc/exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/exit.c b/lib/libc/exit.c index b2fde9ca..f4ffe27c 100644 --- a/lib/libc/exit.c +++ b/lib/libc/exit.c @@ -10,7 +10,7 @@ static void (*exitfun)(void); void exit(int status) { - if (exitfun) + if (exitfun != NULL) (*exitfun)(); for (;;) ; @@ -18,7 +18,7 @@ void exit(int status) int atexit(void (*fun)(void)) { - if (exitfun) + if (exitfun != NULL) return -1; exitfun = fun; |