regcomp.c: uninitialized member (backrefed_status) was used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosako 2005-03-01 12:23:17 +00:00
Родитель 7f08f0d511
Коммит eaf373d602
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1,3 +1,8 @@
Tue Mar 1 21:16:54 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
* regcomp.c (optimize_node_left): uninitialized member
(OptEnv.backrefed_status) was used. [ruby-dev:25778]
Tue Mar 1 00:40:35 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp> Tue Mar 1 00:40:35 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
* lib/rinda/tuplespace.rb (Rinda::TupleSpace): improved keeper thread. * lib/rinda/tuplespace.rb (Rinda::TupleSpace): improved keeper thread.

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

@ -3339,7 +3339,6 @@ typedef struct {
typedef struct { typedef struct {
MinMaxLen mmd; MinMaxLen mmd;
BitStatusType backrefed_status;
OnigEncoding enc; OnigEncoding enc;
OnigOptionType options; OnigOptionType options;
OnigAmbigType ambig_flag; OnigAmbigType ambig_flag;
@ -4271,7 +4270,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
r = optimize_node_left(en->target, opt, env); r = optimize_node_left(en->target, opt, env);
if (is_set_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK)) { if (is_set_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK)) {
if (BIT_STATUS_AT(env->backrefed_status, en->regnum)) if (BIT_STATUS_AT(env->scan_env->backrefed_mem, en->regnum))
remove_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK); remove_opt_anc_info(&opt->anc, ANCHOR_ANYCHAR_STAR_MASK);
} }
} }