1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2017-06-12 04:35:52 +00:00
parent fccbc2d278
commit 581cd6cfad

3
gc.c
View file

@ -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));
}
}