aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-06-13 16:40:28 +0530
committersinanmohd <sinan@sinanmohd.com>2024-06-13 16:40:28 +0530
commit72d7ace64d2b511fe810e3d2564b3372afbe365f (patch)
tree7deb7033f088bd2fe1df88182b1b751e0d36c605 /src
parenta5811162aa7b69176695dc93d1efdbab656d0f65 (diff)
jobs/job_read_inputdrvs: avoid inserting NULL pointer to dlist
Diffstat (limited to 'src')
-rw-r--r--src/jobs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jobs.c b/src/jobs.c
index aef9fe5..b5fd31c 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -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: