Skip to content

Commit 7154b42

Browse files
committed
Fix a -Wmaybe-uninitialized
lev in rb_gc_vm_lock() is uninitialized in single ractor mode.
1 parent 6a16c3e commit 7154b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
unsigned int
134134
rb_gc_vm_lock(void)
135135
{
136-
unsigned int lev;
136+
unsigned int lev = 0;
137137
RB_VM_LOCK_ENTER_LEV(&lev);
138138
return lev;
139139
}

0 commit comments

Comments
 (0)