summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-12-11 17:12:50 +0100
committerSven Eden <yamakuzure@gmx.net>2017-12-11 17:12:50 +0100
commit38a3d01be63ab0f156d62a5ad4cebe7c93bda987 (patch)
treeb8a4b34ff66cc92cb6db5b9da649ad25ea3077f8 /src/basic
parent3c066b57bc3ed700448a85767f87d18bbe64db05 (diff)
basic/exec-utils:do_execute() : Remove "maybe unitialized" warning
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)