diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2001-10-10 19:23:44 +0200 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2001-10-10 14:49:43 +0000 |
commit | 8e5e9ebe73253381295c8c22fd24720255d732e9 (patch) | |
tree | af776933651524f9a51e600df3dcc23e2b74498e /pp_ctl.c | |
parent | 737c380eddfcfb819f42666b6b5bd6171d245f53 (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |