diff options
Diffstat (limited to 'src/core/unit.c')
-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; |