aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-09 16:37:44 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-09 16:37:44 +0000
commitf45eb45100e7a655c25629354c0a1c48c363360c (patch)
treef21f57f385ae3b2dbbab3b21eb3662052bc5f2f6
parent18d03a9eb567c4ce5cfb2d301e13462e6ebd6e45 (diff)
downloadruby-f45eb45100e7a655c25629354c0a1c48c363360c.tar.gz
* process.c (rb_fork_internal): initialize exc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--process.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 54ff2d4d62..d0af902528 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Jun 10 01:37:18 2012 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_fork_internal): initialize exc.
+
Sun Jun 10 00:19:25 2012 Tanaka Akira <akr@fsij.org>
* process.c: don't use non async-signal-safe functions in a child
diff --git a/process.c b/process.c
index b13f04e1eb..f2be6c0f11 100644
--- a/process.c
+++ b/process.c
@@ -2881,7 +2881,7 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
rb_pid_t pid;
int err, state = 0;
int ep[2];
- VALUE exc;
+ VALUE exc = Qnil;
int error_occured;
if (status) *status = 0;