mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
When growing the job table, don't relocate the jobmru pointer if it's NULL.
This commit is contained in:
parent
2c8f5a28bb
commit
0d3d4c12c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99760
@ -617,6 +617,7 @@ makejob(union node *node __unused, int nprocs)
|
||||
memcpy(jp, jobtab, njobs * sizeof jp[0]);
|
||||
#if JOBS
|
||||
/* Relocate `next' pointers and list head */
|
||||
if (jobmru != NULL)
|
||||
jobmru = &jp[jobmru - jobtab];
|
||||
for (i = 0; i < njobs; i++)
|
||||
if (jp[i].next != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user