summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-26 08:25:45 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-26 08:25:45 -0700
commita438ddfd375bdc676cbf6945958c7a4250fc24f4 (patch)
tree6c1ecab98d6322af1ee49d7ed529b0b3e7978b38 /pp.c
parentf132ae694cadce5cea5b006969b9b9ad169ecf64 (diff)
downloadperl-a438ddfd375bdc676cbf6945958c7a4250fc24f4.tar.gz
Remove now-unnecessary len check from pp.c:S_rv2gv
This check, added by ed996e63f6, is no longer necessary as of commit f132ae694c, since PL_sv_undef takes a different path.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index e2427f8e8b..156c4d36fd 100644
--- a/pp.c
+++ b/pp.c
@@ -215,8 +215,7 @@ S_rv2gv(pTHX_ SV *sv, const bool vivify_sv, const bool strict,
gv_fetchpvn_flags(nambeg, len, SvUTF8(sv), SVt_PVGV)
);
if (!temp
- /* !len to avoid an extra uninit warning */
- && (!len || !is_gv_magical_sv(sv,0)
+ && (!is_gv_magical_sv(sv,0)
|| !(sv = MUTABLE_SV(gv_fetchpvn_flags(
nambeg, len, GV_ADD | SvUTF8(sv),
SVt_PVGV))))) {