diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 05:56:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-16 05:56:21 +0000 |
commit | 1ae69a20645d7be556fd0ecd001b0bb5f3959330 (patch) | |
tree | ac848ddeddf4f01709d92e2d60b4f267351f06ef | |
parent | 360b78e4dccf19971d7dc46a31fc55a2759e8762 (diff) |
fix r60792.
* error.c (warning_string): `file` is already cstr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | error.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -230,8 +230,7 @@ warning_string(rb_encoding *enc, const char *fmt, va_list args) { int line; const char *file = rb_source_location_cstr(&line); - return warn_vsprintf(enc, - RSTRING_PTR(file), line, fmt, args); + return warn_vsprintf(enc, file, line, fmt, args); } #define with_warning_string(mesg, enc, fmt) \ |