aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;