diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-05-19 15:42:03 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-05-19 15:42:42 +0200 |
commit | f3b85044c845de03de05135c1dd5f3298bf3e5a2 (patch) | |
tree | b76e172ac83ba9f5d2ad4197e5444019e5d94b07 /src | |
parent | fcd8b266edf0df2b85079fcf7b099cd4028740e6 (diff) |
unit: fix unit_check_unneeded() dependency iteration
Fixes a regression introduced in be7d9ff730cb88d7c6a869dd5c47754c78ceaef2.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/unit.c b/src/core/unit.c index 42c7566be4..f7d6289905 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -1618,7 +1618,7 @@ static void unit_check_unneeded(Unit *u) { return; for (j = 0; j < ELEMENTSOF(needed_dependencies); j++) - SET_FOREACH(other, u->dependencies[j], i) + SET_FOREACH(other, u->dependencies[needed_dependencies[j]], i) if (unit_active_or_pending(other)) return; |