summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-12 04:35:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-12 04:35:52 +0000
commit581cd6cfad346063e3cf08ffded90dfe93bbc236 (patch)
tree793400156abac5d9a25ffac5d961bc3ba950d445
parentfccbc2d278226a2dfe5cffe4918724b0110c5781 (diff)
gc.c: duplicate rb_iseq_path by RSTRING_PTR
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--gc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 9ff2da5..5ee5adb 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));
}
}