X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fexec-util.c;h=c4fea735c43c69b385207dfa038b032bad63c705;hp=e542d5c93ec22c43c2819cf8ffa26695dea97566;hb=adedf22e98a106a35eda5d5e38f69aced4d837ef;hpb=f1388245b7c3cf7ab232c249b83fa5ff29e38b00 diff --git a/src/basic/exec-util.c b/src/basic/exec-util.c index e542d5c93..c4fea735c 100644 --- a/src/basic/exec-util.c +++ b/src/basic/exec-util.c @@ -130,7 +130,7 @@ static int do_execute( STRV_FOREACH(path, paths) { _cleanup_free_ char *t = NULL; _cleanup_close_ int fd = -1; - pid_t pid; + pid_t pid = 0; t = strdup(*path); if (!t)