1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00

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:03 +02:00
parent fcd8b266ed
commit f3b85044c8

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;