summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-25 10:52:38 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-25 10:57:37 -0500
commitaa1aad74e6b14730542c26a7c17c5d06c62b6089 (patch)
treed2057d51fb24ff464a07ea0175e3b71dedefefa7 /src
parent3dd0bbeb153040ca59899f770e5b0714947ea3cb (diff)
run: uninitialized variable
Diffstat (limited to 'src')
-rw-r--r--src/run/run.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/run/run.c b/src/run/run.c
index b183e4e616..22abb0ebbb 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -423,16 +423,12 @@ static int transient_cgroup_set_properties(sd_bus_message *m) {
}
static int transient_kill_set_properties(sd_bus_message *m) {
- int r;
assert(m);
- if (arg_send_sighup) {
- r = sd_bus_message_append(m, "(sv)", "SendSIGHUP", "b", arg_send_sighup);
- if (r < 0)
- return r;
- }
-
- return r;
+ if (arg_send_sighup)
+ return sd_bus_message_append(m, "(sv)", "SendSIGHUP", "b", arg_send_sighup);
+ else
+ return 0;
}
static int transient_service_set_properties(sd_bus_message *m, char **argv, const char *pty_path) {