summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-12-08 06:00:28 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-12-09 18:47:17 -0800
commit8e217d4af45bd3ca441339d3a0ca39d1d1b14293 (patch)
tree355facd71fe1f42d01b9b7e8e62b4b47ae90ff3b /doio.c
parentfc2b2dcaa051537d8d92ccf366f291581b26024b (diff)
downloadperl-8e217d4af45bd3ca441339d3a0ca39d1d1b14293.tar.gz
doio.c: Use SvREFCNT_dec_NN
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.
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doio.c b/doio.c
index 08ed433d6a..1cc0e412ff 100644
--- 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));