mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +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,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 -
|
||||
|
Loading…
Reference in New Issue
Block a user