summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorkosako <kosako@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-01 12:23:17 +0000
committerkosako <kosako@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-03-01 12:23:17 +0000
commiteaf373d6026c20a7b6c5e263fc9f0e8ca81d3b8c (patch)
tree0ef275c208608619d678971c360f2854f86da830 /regcomp.c
parent7f08f0d51126de193a9bd87804718a57e06b24fa (diff)
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
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 5171b15..a2315fc 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -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);
}
}