chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c066b5
)
basic/exec-utils:do_execute() : Remove "maybe unitialized" warning
author
Sven Eden
<yamakuzure@gmx.net>
Mon, 11 Dec 2017 16:12:50 +0000
(17:12 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Mon, 11 Dec 2017 16:12:50 +0000
(17:12 +0100)
src/basic/exec-util.c
patch
|
blob
|
history
diff --git
a/src/basic/exec-util.c
b/src/basic/exec-util.c
index 861af3264b015d3c3c0f9d8cecd2ce3dd6fb2f47..7a4dab03c07fecda09e42fb8de0463c140d90d5d 100644
(file)
--- 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)