summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-02-18 13:34:34 +0000
committerDavid Mitchell <davem@iabyn.com>2011-02-18 13:34:34 +0000
commit8b64c3301273d1ee46009e53919208300254254c (patch)
tree484f1a2e6c1c43420289655304af168b6cfe340b
parentd6180d14b4619df2d63a53f8e556f958896cf39a (diff)
downloadperl-8b64c3301273d1ee46009e53919208300254254c.tar.gz
pp_subst: eliminate 'matched' local var
-rw-r--r--pp_hot.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/pp_hot.c b/pp_hot.c
index e452f07b54..8e52c6d576 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -2150,7 +2150,6 @@ PP(pp_subst)
const I32 oldsave = PL_savestack_ix;
STRLEN slen;
bool doutf8 = FALSE;
- I32 matched;
#ifdef PERL_OLD_COPY_ON_WRITE
bool is_cow;
#endif
@@ -2252,10 +2251,9 @@ PP(pp_subst)
*/
}
- matched = CALLREGEXEC(rx, s, strend, orig, 0, TARG, NULL,
- r_flags | REXEC_CHECKED);
-
- if (!matched) {
+ if (!CALLREGEXEC(rx, s, strend, orig, 0, TARG, NULL,
+ r_flags | REXEC_CHECKED))
+ {
ret_no:
SPAGAIN;
PUSHs(rpm->op_pmflags & PMf_NONDESTRUCT ? TARG : &PL_sv_no);