From: Yu Watanabe Date: Wed, 26 Apr 2023 05:23:12 +0000 (+0900) Subject: core/job: add one more assertion X-Git-Tag: v254-rc1~612^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ff134004d46079f1b515bdb23be256cfe829541;p=thirdparty%2Fsystemd.git core/job: add one more assertion In this stage, the unit should not have installed job of the type. --- diff --git a/src/core/job.c b/src/core/job.c index 826ef6809c1..af479879383 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -237,6 +237,7 @@ Job* job_install(Job *j) { } /* Install the job */ + assert(!*pj); *pj = j; j->installed = true;