summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorSpider Boardman <spider@orb.nashua.nh.us>2000-09-13 13:52:20 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2000-09-14 14:42:56 +0000
commit569233ed6d7a0f6b310fe6aaef79d45640ae30bd (patch)
tree8187469a54c235bee7d39c8d7bc20753c6af41e4 /regcomp.c
parent67e989fb549091286d76fd8d29f1ec03b9da175d (diff)
downloadperl-569233ed6d7a0f6b310fe6aaef79d45640ae30bd.tar.gz
Fix for a parsing bug, not for the original bug.
Subject: Re: [ID 20000910.005] Another segfault with regexes. Message-Id: <200009132152.RAA24029@leggy.zk3.dec.com> p4raw-id: //depot/perl@7076
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index c60ab84409..b0fd6da71f 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -1963,7 +1963,10 @@ S_reg(pTHX_ I32 paren, I32 *flagp)
else
sv = newSVpvn("", 0);
+ ENTER;
+ Perl_save_re_context(aTHX);
rop = sv_compile_2op(sv, &sop, "re", &av);
+ LEAVE;
n = add_data(3, "nop");
PL_regcomp_rx->data->data[n] = (void*)rop;