diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-06-13 16:40:28 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-06-13 16:40:28 +0530 |
commit | 72d7ace64d2b511fe810e3d2564b3372afbe365f (patch) | |
tree | 7deb7033f088bd2fe1df88182b1b751e0d36c605 /src | |
parent | a5811162aa7b69176695dc93d1efdbab656d0f65 (diff) |
jobs/job_read_inputdrvs: avoid inserting NULL pointer to dlist
Diffstat (limited to 'src')
-rw-r--r-- | src/jobs.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -76,12 +76,11 @@ static int job_read_inputdrvs(struct job *job, cJSON *input_drvs) goto out_free; } } + LIST_INSERT_HEAD(&job->deps, dep_job, dlist); drv_path = NULL; out_name = NULL; dep_job = NULL; - - LIST_INSERT_HEAD(&job->deps, dep_job, dlist); } out_free: |