From db0ebb32c92b592ff2a9f0f0cf84d0037edbfbae Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 11 Nov 2010 12:26:30 +0000 Subject: [PATCH] * io.c (pipe_finalize): status is success if no process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }