diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/jobs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c index c0d3e4f..845fb15 100644 --- a/bin/sh/jobs.c +++ b/bin/sh/jobs.c @@ -617,7 +617,8 @@ makejob(union node *node __unused, int nprocs) memcpy(jp, jobtab, njobs * sizeof jp[0]); #if JOBS /* Relocate `next' pointers and list head */ - jobmru = &jp[jobmru - jobtab]; + if (jobmru != NULL) + jobmru = &jp[jobmru - jobtab]; for (i = 0; i < njobs; i++) if (jp[i].next != NULL) jp[i].next = &jp[jp[i].next - |