diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-12-11 17:12:50 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-12-11 17:12:50 +0100 |
commit | 38a3d01be63ab0f156d62a5ad4cebe7c93bda987 (patch) | |
tree | b8a4b34ff66cc92cb6db5b9da649ad25ea3077f8 /src/basic/exec-util.c | |
parent | 3c066b57bc3ed700448a85767f87d18bbe64db05 (diff) |
basic/exec-utils:do_execute() : Remove "maybe unitialized" warning
Diffstat (limited to 'src/basic/exec-util.c')
-rw-r--r-- | src/basic/exec-util.c | 4 |
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) |