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:
fc2b2dc
)
doio.c: Use SvREFCNT_dec_NN
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 8 Dec 2012 14:00:28 +0000
(06:00 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Mon, 10 Dec 2012 02:47:17 +0000
(18:47 -0800)
The sole use of SvREFCNT_dec in doio.c is on a variable than is
never null (setdefout would fail an assertion otherwise), so
no need to check whether it is.
doio.c
patch
|
blob
|
blame
|
history
diff --git
a/doio.c
b/doio.c
index
08ed433
..
1cc0e41
100644
(file)
--- a/
doio.c
+++ b/
doio.c
@@
-908,7
+908,7
@@
Perl_nextargv(pTHX_ GV *gv)
{
GV * const oldout = MUTABLE_GV(av_pop(PL_argvout_stack));
setdefout(oldout);
- SvREFCNT_dec(oldout);
+ SvREFCNT_dec
_NN
(oldout);
return NULL;
}
setdefout(gv_fetchpvs("STDOUT", GV_ADD|GV_NOTQUAL, SVt_PVIO));