diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-02 12:04:43 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-02 12:04:43 +0000 |
commit | 6a26b59600c7c66611c9a52038bb95ff4d4194c0 (patch) | |
tree | 2a69a4f48eb7e804103d400e3750f5ee5aba77fd /parse.y | |
parent | 3770ac98ff18a7ebc9836550f91b81dcfc19106d (diff) | |
download | ruby-6a26b59600c7c66611c9a52038bb95ff4d4194c0.tar.gz |
* parse.y (literal_concat0): tail can be nil. [ruby-dev:38980]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -7782,6 +7782,7 @@ list_concat_gen(struct parser_params *parser, NODE *head, NODE *tail) static int literal_concat0(struct parser_params *parser, VALUE head, VALUE tail) { + if (NIL_P(tail)) return 1; if (!rb_enc_compatible(head, tail)) { compile_error(PARSER_ARG "string literal encodings differ (%s / %s)", rb_enc_name(rb_enc_get(head)), |