From: Lennart Poettering Date: Tue, 9 Oct 2018 20:23:14 +0000 (+0200) Subject: core: fix unfortunate typo in unit_is_unneeded() X-Git-Tag: v240~549^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=93d4cb09d56e670b0c203dd6ec6939e391a0df59;p=thirdparty%2Fsystemd.git core: fix unfortunate typo in unit_is_unneeded() Follow-up for a3c1168ac293f16d9343d248795bb4c246aaff4a. --- diff --git a/src/core/unit.c b/src/core/unit.c index 1b9bbf70577..d90456e03c3 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -2000,7 +2000,7 @@ bool unit_is_unneeded(Unit *u) { * restart, then don't clean this one up. */ HASHMAP_FOREACH_KEY(v, other, u->dependencies[deps[j]], i) { - if (u->job) + if (other->job) return false; if (!UNIT_IS_INACTIVE_OR_FAILED(unit_active_state(other)))