From 36fbf43b09574529d7922941f64f88e5867aa894 Mon Sep 17 00:00:00 2001 From: matz Date: Sun, 20 Nov 2005 13:42:57 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ regparse.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1cd6be6203..e1491f9584 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Nov 20 21:39:27 2005 K.Kosako + + * regparse.c (fetch_token_in_cc): tok->escaped should be + initialized. [ruby-dev:27763] + Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada * parse.y (rb_symname_p): [ not followed by ] is not valid symbol. diff --git a/regparse.c b/regparse.c index 49063f10b4..837ea35b30 100644 --- a/regparse.c +++ b/regparse.c @@ -2621,6 +2621,8 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env) tok->type = TK_CHAR; tok->base = 0; tok->u.c = c; + tok->escaped = 0; + if (c == ']') { tok->type = TK_CC_CLOSE; }