diff options
author | David Mitchell <davem@iabyn.com> | 2011-02-18 13:34:34 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2011-02-18 13:34:34 +0000 |
commit | 8b64c3301273d1ee46009e53919208300254254c (patch) | |
tree | 484f1a2e6c1c43420289655304af168b6cfe340b | |
parent | d6180d14b4619df2d63a53f8e556f958896cf39a (diff) | |
download | perl-8b64c3301273d1ee46009e53919208300254254c.tar.gz |
pp_subst: eliminate 'matched' local var
-rw-r--r-- | pp_hot.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |