From f3b85044c845de03de05135c1dd5f3298bf3e5a2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 May 2015 15:42:03 +0200 Subject: [PATCH] unit: fix unit_check_unneeded() dependency iteration Fixes a regression introduced in be7d9ff730cb88d7c6a869dd5c47754c78ceaef2. --- src/core/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/unit.c b/src/core/unit.c index 42c7566be44..f7d6289905d 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;