This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6180d1
)
pp_subst: eliminate 'matched' local var
author
David Mitchell
<davem@iabyn.com>
Fri, 18 Feb 2011 13:34:34 +0000
(13:34 +0000)
committer
David Mitchell
<davem@iabyn.com>
Fri, 18 Feb 2011 13:34:34 +0000
(13:34 +0000)
pp_hot.c
patch
|
blob
|
blame
|
history
diff --git
a/pp_hot.c
b/pp_hot.c
index
e452f07
..
8e52c6d
100644
(file)
--- 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);