summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-06-09 05:50:19 -0400
committerTony Cook <tony@develop-help.com>2014-06-12 11:02:28 +1000
commit762333d9ece738d85d8c0668c9b2dc6e83281c73 (patch)
tree71e43deb5d0defe948f7a09ad128206e8f4da8e1 /pp_ctl.c
parent08b8e3e1a56c513f5c879d172f8882354c2b53e5 (diff)
downloadperl-762333d9ece738d85d8c0668c9b2dc6e83281c73.tar.gz
SvREFCNT_dec_NN in pp_require
Some compilers (GCC) will inline+optimize this, some don't (Visual C). Make it clear to not check for null twice.
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 6a619cea0a..7f80ea4114 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3962,11 +3962,11 @@ PP(pp_require)
filter_has_file = 0;
filter_cache = NULL;
if (filter_state) {
- SvREFCNT_dec(filter_state);
+ SvREFCNT_dec_NN(filter_state);
filter_state = NULL;
}
if (filter_sub) {
- SvREFCNT_dec(filter_sub);
+ SvREFCNT_dec_NN(filter_sub);
filter_sub = NULL;
}
}