From 1ae69a20645d7be556fd0ecd001b0bb5f3959330 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Nov 2017 05:56:21 +0000 Subject: [PATCH] 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 --- error.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/error.c b/error.c index eff64848cb..f00951940f 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) \