* regparse.c (fetch_token_in_cc): tok->escaped should be

initialized.  [ruby-dev:27763]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2005-11-20 13:42:57 +00:00
Родитель 479a05bf89
Коммит 36fbf43b09
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sun Nov 20 21:39:27 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
* regparse.c (fetch_token_in_cc): tok->escaped should be
initialized. [ruby-dev:27763]
Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (rb_symname_p): [ not followed by ] is not valid symbol. * parse.y (rb_symname_p): [ not followed by ] is not valid symbol.

Просмотреть файл

@ -2621,6 +2621,8 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
tok->type = TK_CHAR; tok->type = TK_CHAR;
tok->base = 0; tok->base = 0;
tok->u.c = c; tok->u.c = c;
tok->escaped = 0;
if (c == ']') { if (c == ']') {
tok->type = TK_CC_CLOSE; tok->type = TK_CC_CLOSE;
} }