diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-31 15:35:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-31 15:35:40 +0200 |
commit | da19d5c19f60ec80e1733b1e994311c59c6eda73 (patch) | |
tree | 1df3b703d728471e1051e23778f857bf4adff23f /src/service.c | |
parent | ba1a55152c50dfbcd3d4a64353b95f4a2f37985e (diff) |
src: our lord is coverity
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c index c74e8a009f..728ca0b018 100644 --- a/src/service.c +++ b/src/service.c @@ -406,7 +406,7 @@ static int sysv_fix_order(Service *s) { /* FIXME: Maybe we should compare the name here lexicographically? */ - if (!(r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0) + if ((r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0) return r; } @@ -1024,7 +1024,7 @@ static int fsck_fix_order(Service *s) { else continue; - if (!(r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0) + if ((r = unit_add_dependency(UNIT(s), d, UNIT(t), true)) < 0) return r; } @@ -1882,6 +1882,7 @@ static void service_enter_signal(Service *s, ServiceState state, bool success) { wait_for_exit = true; set_free(pid_set); + pid_set = NULL; } } |