From 38a3d01be63ab0f156d62a5ad4cebe7c93bda987 Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Mon, 11 Dec 2017 17:12:50 +0100 Subject: basic/exec-utils:do_execute() : Remove "maybe unitialized" warning --- src/basic/exec-util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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) -- cgit v1.2.3