summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 678b819..a562619 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -216,7 +216,7 @@ void
rb_clear_trace_func(void)
{
rb_vm_t *vm = GET_VM();
- rb_thread_t *th;
+ rb_thread_t *th = 0;
list_for_each(&vm->living_threads, th, vmlt_node) {
rb_threadptr_remove_event_hook(th, 0, Qundef);