summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index fd8f9e5..741b4ad 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<n; i++) {
fprintf(stderr, "%s\n", syms[i]);
}