summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 9ff2da545c..5ee5adbdb3 100644
--- a/gc.c
+++ b/gc.c
@@ -9208,9 +9208,10 @@ static void
rb_raw_iseq_info(char *buff, const int buff_size, const rb_iseq_t *iseq)
{
if (iseq->body->location.label) {
+ VALUE path = rb_iseq_path(iseq);
snprintf(buff, buff_size, "%s %s@%s:%d", buff,
RSTRING_PTR(iseq->body->location.label),
- RSTRING_PTR(rb_iseq_path(iseq)),
+ RSTRING_PTR(path),
FIX2INT(iseq->body->location.first_lineno));
}
}