summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
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 a6f1ce5a47..54c57969b3 100644
--- a/vm.c
+++ b/vm.c
@@ -1090,7 +1090,6 @@ oldbt_init(void *ptr, int dmy)
arg->filename = th->vm->progname ? th->vm->progname : ruby_engine_name;;
arg->line_no = 0;
- arg->data = (void *)rb_ary_new();
}
static void
@@ -1142,6 +1141,7 @@ vm_backtrace_str_ary(rb_thread_t *th, size_t lev, size_t n)
VALUE *ptr;
arg.func = oldbt_push;
+ arg.data = (void *)rb_ary_new();
backtrace_each(th,
oldbt_init,