mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
core/job: add check for return of job_type_merge_and_collapse()
Using an assertion is fine, since calls to job_merge_into_installed() are protected by a check for job_type_is_conflicting(). Uncovered by Coverity, fixes CID 996307.
This commit is contained in:
committed by
Lennart Poettering
parent
a2680b6f27
commit
53a2383b8b
@@ -174,7 +174,7 @@ static void job_merge_into_installed(Job *j, Job *other) {
|
||||
assert(j->unit == other->unit);
|
||||
|
||||
if (j->type != JOB_NOP)
|
||||
job_type_merge_and_collapse(&j->type, other->type, j->unit);
|
||||
assert_se(job_type_merge_and_collapse(&j->type, other->type, j->unit) == 0);
|
||||
else
|
||||
assert(other->type == JOB_NOP);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user