chiark / gitweb /
basic/exec-utils:do_execute() : Remove "maybe unitialized" warning
authorSven Eden <yamakuzure@gmx.net>
Mon, 11 Dec 2017 16:12:50 +0000 (17:12 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 11 Dec 2017 16:12:50 +0000 (17:12 +0100)
src/basic/exec-util.c

index 861af3264b015d3c3c0f9d8cecd2ce3dd6fb2f47..7a4dab03c07fecda09e42fb8de0463c140d90d5d 100644 (file)
@@ -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)