summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorEric Brine <ikegami@adaelis.com>2012-12-05 01:30:25 -0500
committerKarl Williamson <public@khwilliamson.com>2013-01-03 21:21:53 -0700
commitd2687c9864ee55010b4c40a464ee830f0bdda6e8 (patch)
tree7c9f0d791c6cb6cfb719f82ff0805fe4dde3f92a /perl.c
parent5398666e2f464a280d839dd05997123b4d99b1e0 (diff)
downloadperl-d2687c9864ee55010b4c40a464ee830f0bdda6e8.tar.gz
Remove redundant NULL checks.
It's safe to pass NULLs to SvREFCNT_dec.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index 0cfb73ca60..0e56b88783 100644
--- a/perl.c
+++ b/perl.c
@@ -2252,8 +2252,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
#endif
lex_start(linestr_sv, rsfp, lex_start_flags);
- if(linestr_sv)
- SvREFCNT_dec(linestr_sv);
+ SvREFCNT_dec(linestr_sv);
PL_subname = newSVpvs("main");