1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

run: uninitialized variable

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-12-25 10:52:38 -05:00
parent 3dd0bbeb15
commit aa1aad74e6

View File

@ -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) {