diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-12 04:35:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-12 04:35:52 +0000 |
commit | 581cd6cfad346063e3cf08ffded90dfe93bbc236 (patch) | |
tree | 793400156abac5d9a25ffac5d961bc3ba950d445 /gc.c | |
parent | fccbc2d278226a2dfe5cffe4918724b0110c5781 (diff) | |
download | ruby-581cd6cfad346063e3cf08ffded90dfe93bbc236.tar.gz |
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
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)); } } |