diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-12-22 23:24:13 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-05-26 00:18:23 -0700 |
commit | 2357bae7a0b405c6c8c0667303468707f4cd32f8 (patch) | |
tree | 621693efbab119e8d30b6a5e48f0b6e0ba7c534c /mg.c | |
parent | d2534ce927217280f0fa1204ca83ffca9f5ce9ae (diff) | |
download | perl-2357bae7a0b405c6c8c0667303468707f4cd32f8.tar.gz |
mg.c: Use SvREFCNT_dec_NN
Using SvREFCNT_dec_NN in a couple of places eliminates needless
null checks.
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3181,7 +3181,7 @@ cleanup: /* pop any of SAVEFREESV, SAVEDESTRUCTOR_X and "save in progress" */ PL_savestack_ix = old_ss_ix; if (flags & 8) - SvREFCNT_dec(sv); + SvREFCNT_dec_NN(sv); PL_op = myop; /* Apparently not needed... */ PL_Sv = tSv; /* Restore global temporaries. */ @@ -3247,7 +3247,7 @@ S_restore_magic(pTHX_ const void *p) SvTEMP_off(sv); } else - SvREFCNT_dec(sv); /* undo the inc in S_save_magic() */ + SvREFCNT_dec_NN(sv); /* undo the inc in S_save_magic() */ } } |