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:
parent
fccbc2d278
commit
581cd6cfad
1 changed files with 2 additions and 1 deletions
3
gc.c
3
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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue