diff options
Diffstat (limited to 'src/core/dbus-service.c')
-rw-r--r-- | src/core/dbus-service.c | 6 |
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) |