]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/job: add one more assertion
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Apr 2023 05:23:12 +0000 (14:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Apr 2023 15:36:24 +0000 (00:36 +0900)
In this stage, the unit should not have installed job of the type.

src/core/job.c

index 826ef6809c144f1351280b47c1195556330c1216..af479879383d0ae76a1fed17e20ebf501e221c4f 100644 (file)
@@ -237,6 +237,7 @@ Job* job_install(Job *j) {
         }
 
         /* Install the job */
+        assert(!*pj);
         *pj = j;
         j->installed = true;