summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 05:56:21 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 05:56:21 (GMT)
commit1ae69a20645d7be556fd0ecd001b0bb5f3959330 (patch)
treeac848ddeddf4f01709d92e2d60b4f267351f06ef /error.c
parent360b78e4dccf19971d7dc46a31fc55a2759e8762 (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
Diffstat (limited to 'error.c')
-rw-r--r--error.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/error.c b/error.c
index eff6484..f009519 100644
--- a/error.c
+++ b/error.c
@@ -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) \