summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 52e1f070bf..b4e7a5c462 100644
--- a/vm.c
+++ b/vm.c
@@ -2131,6 +2131,9 @@ th_init(rb_thread_t *th, VALUE self)
th->last_status = Qnil;
th->waiting_fd = -1;
th->root_svar = Qnil;
+#ifdef NON_SCALAR_THREAD_ID
+ th->thread_id_string[0] = '\0';
+#endif
#if OPT_CALL_THREADED_CODE
th->retval = Qundef;