summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2002-02-03 12:21:45 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-04 13:30:55 +0000
commit438a380156ae0ffaf23d68d3658b8429f19d614f (patch)
tree31c9dd81b26b63fe9346b44c8cd83b55d229e323 /regcomp.c
parentfd90170b3da6a44ee7f1f3aacf4ee2cce1cf4226 (diff)
downloadperl-438a380156ae0ffaf23d68d3658b8429f19d614f.tar.gz
(??{ }) anomaly
Message-ID: <ZxgX8gzkgCXO092yn@efn.org> p4raw-id: //depot/perl@14547
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 2283d109fa..7850492497 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2168,6 +2168,8 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp)
/* FALL THROUGH*/
case '?': /* (??...) */
logical = 1;
+ if (*RExC_parse != '{')
+ goto unknown;
paren = *RExC_parse++;
/* FALL THROUGH */
case '{': /* (?{...}) */