aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 270a338d9..db7dffc72 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13427,13 +13427,8 @@ exitcmd(int argc UNUSED_PARAM, char **argv)
13427 if (stoppedjobs()) 13427 if (stoppedjobs())
13428 return 0; 13428 return 0;
13429 13429
13430 if (argv[1]) { 13430 if (argv[1])
13431 int status = number(argv[1]); 13431 savestatus = number(argv[1]);
13432
13433 exitstatus = status;
13434 if (savestatus >= 0)
13435 savestatus = status;
13436 }
13437 13432
13438 raise_exception(EXEXIT); 13433 raise_exception(EXEXIT);
13439 /* NOTREACHED */ 13434 /* NOTREACHED */