summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-10-10 19:23:44 +0200
committerAbhijit Menon-Sen <ams@wiw.org>2001-10-10 14:49:43 +0000
commit8e5e9ebe73253381295c8c22fd24720255d732e9 (patch)
treeaf776933651524f9a51e600df3dcc23e2b74498e /pp_ctl.c
parent737c380eddfcfb819f42666b6b5bd6171d245f53 (diff)
downloadperl-8e5e9ebe73253381295c8c22fd24720255d732e9.tar.gz
two s/// bugfixes
Message-Id: <20011010172344.C22440@rafael> p4raw-id: //depot/perl@12392
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index b14e27f4c2..09c1a190c6 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -172,6 +172,7 @@ PP(pp_substcont)
rxres_restore(&cx->sb_rxres, rx);
if (cx->sb_iters++) {
+ I32 saviters = cx->sb_iters;
if (cx->sb_iters > cx->sb_maxiters)
DIE(aTHX_ "Substitution loop");
@@ -213,6 +214,7 @@ PP(pp_substcont)
POPSUBST(cx);
RETURNOP(pm->op_next);
}
+ cx->sb_iters = saviters;
}
if (RX_MATCH_COPIED(rx) && rx->subbeg != orig) {
m = s;