summaryrefslogtreecommitdiff
path: root/src/core/path.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-11-20 16:13:46 +0100
committerGitHub <noreply@github.com>2019-11-20 16:13:46 +0100
commit2d8898f5646bdaf38ccd2784ccd63c440be78b86 (patch)
treeae1bc665d83ade5b1f3edd922a4d33340ca6b570 /src/core/path.c
parent206a29b2e1f63e664de8daffac8b2f9a9c2eec7d (diff)
parent2536752dda4b62646814fa4e6b3d0987642bf200 (diff)
downloadsystemd-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.c12
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) {