1
0
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:
Tim J. Robbins 2002-07-11 04:22:41 +00:00
parent 2c8f5a28bb
commit 0d3d4c12c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99760

View File

@ -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)