summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-10 12:04:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-10 12:04:18 +0000
commitf800c5fc8e4a1587c60019301f17a3d4e33b4a1c (patch)
tree1e617640824310f744581659a17ab6a3fa89acd4
parentf53bd45d6f65e75a53538d31f8bbb90fbe373f1a (diff)
Constified ruby_sourcefile
which usually refers ruby_sourcefile_string and is not freed directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index b12f3a4..f7a85d2 100644
--- a/parse.y
+++ b/parse.y
@@ -225,7 +225,7 @@ struct parser_params {
struct local_vars *lvtbl;
int line_count;
int ruby_sourceline; /* current line no. */
- char *ruby_sourcefile; /* current source file */
+ const char *ruby_sourcefile; /* current source file */
VALUE ruby_sourcefile_string;
rb_encoding *enc;
token_info *token_info;