unit: fix unit_check_unneeded() dependency iteration

Fixes a regression introduced in be7d9ff730.
This commit is contained in:
Lennart Poettering
2015-05-19 15:42:42 +02:00
parent fcd8b266ed
commit f3b85044c8
+1 -1
View File
@@ -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;