summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/exec-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c
index 861af3264..7a4dab03c 100644
--- a/src/basic/exec-util.c
+++ b/src/basic/exec-util.c
@@ -130,7 +130,11 @@ static int do_execute(
STRV_FOREACH(path, paths) {
_cleanup_free_ char *t = NULL;
_cleanup_close_ int fd = -1;
+#if 0 /// No "maybe uninitialized" warning in elogind
pid_t pid;
+#else
+ pid_t pid = 0;
+#endif // 0
t = strdup(*path);
if (!t)