summaryrefslogtreecommitdiff
path: root/src/core/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-11 20:13:37 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-11 22:18:21 +0200
commit6f856a0992aee3fb06cb13a761b902657ff228ea (patch)
treec6688722787469f15951f555d92e4a794221cf22 /src/core/service.c
parentd3650f0c4b04990c5b9e8a3463de309ec165fcf5 (diff)
core: always initialize ExecParamters.bus_endpoint_fd to -1
Otherwise it might be passed in as 0, which is a valid fd, but usually does not refer to a real endpoint.
Diffstat (limited to 'src/core/service.c')
-rw-r--r--src/core/service.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/service.c b/src/core/service.c
index d52ba73aac..1c55e53c3c 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -1054,10 +1054,10 @@ static int service_spawn(
**argv = NULL, **final_env = NULL, **our_env = NULL;
const char *path;
ExecParameters exec_params = {
- .apply_permissions = apply_permissions,
- .apply_chroot = apply_chroot,
- .apply_tty_stdin = apply_tty_stdin,
- .bus_endpoint_fd = -1,
+ .apply_permissions = apply_permissions,
+ .apply_chroot = apply_chroot,
+ .apply_tty_stdin = apply_tty_stdin,
+ .bus_endpoint_fd = -1,
.selinux_context_net = s->socket_fd_selinux_context_net
};