aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-07-25 06:34:19 +0530
committersinanmohd <sinan@sinanmohd.com>2024-07-25 07:21:06 +0530
commit6e282c5261be21f872880e17783792e77599e414 (patch)
tree60db8b27c7ff538253a83ae243bf71d89a3dc146
parenta6a2e54df6cc1f716ac32f0435fcaa1f1424521e (diff)
jobid: update size after realloc
-rw-r--r--src/jobid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jobid.c b/src/jobid.c
index 6e4efc1..e16cd81 100644
--- a/src/jobid.c
+++ b/src/jobid.c
@@ -33,6 +33,7 @@ static int dag_id_assign(struct job *j, struct jobid *jobid)
return -errno;
}
jobid->jobs = ret;
+ jobid->size = newsize;
j->id = jobid->filled++;
jobid->jobs[j->id] = j;