1
0
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:
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,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 -