core: fix unfortunate typo in unit_is_unneeded()
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Oct 2018 20:23:14 +0000 (22:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 13 Oct 2018 11:01:08 +0000 (13:01 +0200)
Follow-up for a3c1168ac293f16d9343d248795bb4c246aaff4a.

src/core/unit.c

index 1b9bbf7..d90456e 100644 (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)))