summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2000-07-11 13:44:50 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-07-11 13:29:14 +0000
commitf06a1d4e6ae96bf8af49f0ef1c79f500d8de0143 (patch)
treedf505a8b9ba9fc103233fb91601e421ffa1f211a /regexec.c
parent576314d7f61ca5fb7814bb8412ab73459affb131 (diff)
downloadperl-f06a1d4e6ae96bf8af49f0ef1c79f500d8de0143.tar.gz
[ID 20000701.002] Regular Expressions Not Unsetting $1 Vars When Backtracking
Message-Id: <200007111144.MAA04446@crypt.compulink.co.uk> p4raw-id: //depot/cfgperl@6337
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regexec.c b/regexec.c
index 49a081f68c..6bddf2dc32 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3001,6 +3001,8 @@ S_regmatch(pTHX_ regnode *prog)
else
c1 = c2 = -1000;
PL_reginput = locinput;
+ if (paren)
+ PL_regendp[paren] = -1;
if (minmod) {
CHECKPOINT lastcp;
minmod = 0;