core: fix unfortunate typo in unit_is_unneeded()

Follow-up for a3c1168ac2.
This commit is contained in:
Lennart Poettering 2018-10-09 22:23:14 +02:00
parent cf99f8eacf
commit 93d4cb09d5
1 changed files with 1 additions and 1 deletions

View File

@ -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)))