summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index dd216bd048..63021533b6 100644
--- a/vm.c
+++ b/vm.c
@@ -1796,6 +1796,10 @@ th_init(rb_thread_t *th, VALUE self)
th->errinfo = Qnil;
th->last_status = Qnil;
th->waiting_fd = -1;
+
+#if OPT_CALL_THREADED_CODE
+ th->retval = Qundef;
+#endif
}
static VALUE