From 6ff134004d46079f1b515bdb23be256cfe829541 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 26 Apr 2023 14:23:12 +0900 Subject: [PATCH] core/job: add one more assertion In this stage, the unit should not have installed job of the type. --- src/core/job.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3