From 70938cb944714e91b284c1fcdab01a6ab2f49034 Mon Sep 17 00:00:00 2001 From: Vincent Pit Date: Sun, 8 Nov 2009 16:13:22 +0100 Subject: [PATCH] SvREFCNT_inc already checks if the SV is non-NULL --- op.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/op.c b/op.c index 43cbc07..573b67b 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 -- 2.7.4