From: Sven Eden Date: Mon, 11 Dec 2017 16:12:50 +0000 (+0100) Subject: basic/exec-utils:do_execute() : Remove "maybe unitialized" warning X-Git-Tag: v235.1~25 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=38a3d01be63ab0f156d62a5ad4cebe7c93bda987;p=elogind.git basic/exec-utils:do_execute() : Remove "maybe unitialized" warning --- 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)