mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
7f08f0d511
commit
eaf373d602
2 changed files with 6 additions and 2 deletions
|
@ -3339,7 +3339,6 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
MinMaxLen mmd;
|
||||
BitStatusType backrefed_status;
|
||||
OnigEncoding enc;
|
||||
OnigOptionType options;
|
||||
OnigAmbigType ambig_flag;
|
||||
|
@ -4271,7 +4270,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
|
|||
r = optimize_node_left(en->target, opt, env);
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue