diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-11-20 16:13:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-20 16:13:46 +0100 |
commit | 2d8898f5646bdaf38ccd2784ccd63c440be78b86 (patch) | |
tree | ae1bc665d83ade5b1f3edd922a4d33340ca6b570 /src/core/path.c | |
parent | 206a29b2e1f63e664de8daffac8b2f9a9c2eec7d (diff) | |
parent | 2536752dda4b62646814fa4e6b3d0987642bf200 (diff) | |
download | systemd-2d8898f5646bdaf38ccd2784ccd63c440be78b86.tar.gz |
Merge pull request #14074 from keszybz/rename-system-options
Rename system-options
Diffstat (limited to 'src/core/path.c')
-rw-r--r-- | src/core/path.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/path.c b/src/core/path.c index 1491a07fa5..ca15ca884e 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); - - if (good) - break; - } + LIST_FOREACH(spec, s, p->specs) + if (path_spec_check_good(s, initial)) + return true; - return good; + return false; } static void path_enter_waiting(Path *p, bool initial, bool recheck) { |