summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorVincent Pit <vince@profvince.com>2009-11-08 16:13:22 +0100
committerVincent Pit <perl@profvince.com>2009-11-08 16:14:00 +0100
commit70938cb944714e91b284c1fcdab01a6ab2f49034 (patch)
tree9288fe41305c0ec11cbf71c657335aa6610713a8 /op.c
parentef8d46e8143455a8b73aff3ecaa10ca3cf293a4d (diff)
downloadperl-70938cb944714e91b284c1fcdab01a6ab2f49034.tar.gz
SvREFCNT_inc already checks if the SV is non-NULL
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/op.c b/op.c
index 43cbc07552..573b67b5e8 100644
--- a/op.c
+++ b/op.c
@@ -575,8 +575,7 @@ Perl_op_clear(pTHX_ OP *o)
&& PL_curpad
#endif
? cGVOPo_gv : NULL;
- if (gv)
- SvREFCNT_inc(gv);
+ SvREFCNT_inc_simple_void(gv);
#ifdef USE_ITHREADS
if (cPADOPo->op_padix > 0) {
/* No GvIN_PAD_off(cGVOPo_gv) here, because other references