aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shell/ash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 293f15147..705fe9fa4 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -3647,7 +3647,7 @@ getjob(const char *name, int getctl)
3647 3647
3648 if (is_number(p)) { 3648 if (is_number(p)) {
3649 num = atoi(p); 3649 num = atoi(p);
3650 if (num < njobs) { 3650 if (num <= njobs) {
3651 jp = jobtab + num - 1; 3651 jp = jobtab + num - 1;
3652 if (jp->used) 3652 if (jp->used)
3653 goto gotit; 3653 goto gotit;