summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-03-08 22:56:02 -0700
committerKarl Williamson <public@khwilliamson.com>2011-03-08 23:22:19 -0700
commit1411dba431b74256819ba8c07e7a61e2aa0b1742 (patch)
tree064fabe7cbcf958cfb18777d897eb613da0ca2d0 /regcomp.c
parentc6b765375213e9d6dce25829a367fe4ef37da1a4 (diff)
downloadperl-1411dba431b74256819ba8c07e7a61e2aa0b1742.tar.gz
PATCH: [perl #85528], add initialization
Commit 137165a601b852a9679983cdfe8d35be29f0939c omitted required initialization for the synthetic start class. Adding it exposed other bugs in cl_and() and cl_or(), which have been fixed by a previous commit.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index ddf2539b31..1f2908412f 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -756,6 +756,7 @@ S_cl_init(const RExC_state_t *pRExC_state, struct regnode_charclass_class *cl)
Zero(cl, 1, struct regnode_charclass_class);
cl->type = ANYOF;
cl_anything(pRExC_state, cl);
+ ARG_SET(cl, ANYOF_NONBITMAP_EMPTY);
}
/* These two functions currently do the exact same thing */