diff --git a/vm_dump.c b/vm_dump.c index fd8f9e50c9..741b4adc89 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -796,12 +796,12 @@ rb_vm_bugreport(void) static void *trace[MAX_NATIVE_TRACE]; int n = backtrace(trace, MAX_NATIVE_TRACE); char **syms = backtrace_symbols(trace, n); - int i; if (syms) { #ifdef __ELF__ rb_dump_backtrace_with_lines(n, trace, syms); #else + int i; for (i=0; i