chiark / gitweb /
Prep v234.2: Apply upstream fixes in src/basic (3/6)
[elogind.git] / src / basic / exec-util.c
index e542d5c93ec22c43c2819cf8ffa26695dea97566..c4fea735c43c69b385207dfa038b032bad63c705 100644 (file)
@@ -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)