summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-04 11:46:50 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-09-04 11:46:50 +0900
commit169b1d1aca0c26d38f8bbd25ecaf5fdb8015f5cf (patch)
treed4c62468dcd3b9d847bd4b128a9475db30b00ef7 /vm.c
parentd4585e7470163c794025c2d56930c0e5a5fbae3c (diff)
Initialize loop variables of list_for_each for MS VC
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index f2ce857d96..15b305e8b9 100644
--- a/vm.c
+++ b/vm.c
@@ -2324,7 +2324,7 @@ rb_vm_mark(void *ptr)
RUBY_GC_INFO("-------------------------------------------------\n");
if (ptr) {
rb_vm_t *vm = ptr;
- rb_ractor_t *r;
+ rb_ractor_t *r = 0;
long i, len;
const VALUE *obj_ary;