summaryrefslogtreecommitdiff
path: root/src/core/dbus-service.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-18 12:29:24 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-18 19:26:21 -0500
commitf1acf85a36f4c32d69511fe1bfa12f66e28fa80d (patch)
tree83c05bd89ea3368b49dd5a838fa2b88baeeb7134 /src/core/dbus-service.c
parentf08fa3be8d0b90ff0e778c7f2457711e9800ae95 (diff)
core: make exec_command_free_list return NULL
Diffstat (limited to 'src/core/dbus-service.c')
-rw-r--r--src/core/dbus-service.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c
index 5a881e8249..2b50ac93d8 100644
--- a/src/core/dbus-service.c
+++ b/src/core/dbus-service.c
@@ -187,10 +187,8 @@ static int bus_service_set_transient_property(
ExecCommand *c;
size_t size = 0;
- if (n == 0) {
- exec_command_free_list(s->exec_command[SERVICE_EXEC_START]);
- s->exec_command[SERVICE_EXEC_START] = NULL;
- }
+ if (n == 0)
+ s->exec_command[SERVICE_EXEC_START] = exec_command_free_list(s->exec_command[SERVICE_EXEC_START]);
f = open_memstream(&buf, &size);
if (!f)