[#21962] Speculative fix: don't set GvNAMELEN to 1 if GvNAME is "".
Abhijit Menon-Sen [Thu, 17 Apr 2003 16:19:31 +0000 (16:19 +0000)]
Anything that's broken by this change should be fixed.

p4raw-id: //depot/perl@19252

gv.c

diff --git a/gv.c b/gv.c
index a04bdcf..489ed0b 100644 (file)
--- a/gv.c
+++ b/gv.c
@@ -688,8 +688,6 @@ Perl_gv_fetchpv(pTHX_ const char *nambeg, I32 add, I32 sv_type)
        }
     }
     len = namend - name;
-    if (!len)
-       len = 1;
 
     /* No stash in name, so see how we can default */