diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-03 01:12:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-03 01:12:58 +0200 |
commit | f0ff5bb88ca8ebfe07d986c51d3a6dba667db908 (patch) | |
tree | 6e15b251fc072b2910efa83c05e08c911d941f1f | |
parent | bf1c25bbc4c8f3f82fd8fb74318f512696e25969 (diff) | |
parent | 09d2f5b1c914a9fbc291af14652a296687d5fbd2 (diff) |
Merge pull request #1123 from phomes/scope-no-bool-vs-int
scope: do not compare a bool return with "<= 0"
-rw-r--r-- | src/core/scope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index 44cd324f58..35cf0621be 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -138,7 +138,7 @@ static int scope_verify(Scope *s) { return 0; if (set_isempty(UNIT(s)->pids) && - !manager_is_reloading_or_reexecuting(UNIT(s)->manager) <= 0 && + !manager_is_reloading_or_reexecuting(UNIT(s)->manager) && !unit_has_name(UNIT(s), SPECIAL_INIT_SCOPE)) { log_unit_error(UNIT(s), "Scope has no PIDs. Refusing."); return -EINVAL; |