aboutsummaryrefslogtreecommitdiffstats
path: root/vm_backtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 077ed5049f..4267b0dd71 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -333,7 +333,7 @@ location_to_str(rb_backtrace_location_t *loc)
}
else {
rb_thread_t *th = GET_THREAD();
- file = th->vm->progname ? th->vm->progname : ruby_engine_name;
+ file = th->vm->progname;
lineno = INT2FIX(0);
}
name = rb_id2str(loc->body.cfunc.mid);
@@ -683,7 +683,7 @@ oldbt_init(void *ptr, size_t dmy)
struct oldbt_arg *arg = (struct oldbt_arg *)ptr;
rb_thread_t *th = GET_THREAD();
- arg->filename = th->vm->progname ? th->vm->progname : ruby_engine_name;;
+ arg->filename = th->vm->progname;
arg->lineno = 0;
}