diff --git a/src/core/path.c b/src/core/path.c index dff551f3772..2872f103cee 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -501,18 +501,14 @@ fail: static bool path_check_good(Path *p, bool initial) { PathSpec *s; - bool good = false; assert(p); - LIST_FOREACH(spec, s, p->specs) { - good = path_spec_check_good(s, initial); + LIST_FOREACH(spec, s, p->specs) + if (path_spec_check_good(s, initial)) + return true; - if (good) - break; - } - - return good; + return false; } static void path_enter_waiting(Path *p, bool initial, bool recheck) {