Remove now-unnecessary len check from pp.c:S_rv2gv
authorFather Chrysostomos <sprout@cpan.org>
Fri, 26 Aug 2011 15:25:45 +0000 (08:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Aug 2011 15:25:45 +0000 (08:25 -0700)
This check, added by ed996e63f6, is no longer necessary as of commit
f132ae694c, since PL_sv_undef takes a different path.

pp.c

diff --git a/pp.c b/pp.c
index e2427f8..156c4d3 100644 (file)
--- 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))))) {