diff --git a/io.c b/io.c index 8fa6613a40..d2aefcf5e1 100644 --- a/io.c +++ b/io.c @@ -4833,7 +4833,7 @@ static void pipe_finalize(rb_io_t *fptr, int noraise) { #if !defined(HAVE_FORK) && !defined(_WIN32) - int status; + int status = 0; if (fptr->stdio_file) { status = pclose(fptr->stdio_file); }