avoid initializing GvCV slot for autovivified filehandles
Gurusamy Sarathy [Thu, 9 Dec 1999 00:13:06 +0000 (00:13 +0000)]
p4raw-id: //depot/perl@4670

pp.c

diff --git a/pp.c b/pp.c
index c14a05c..24ce99c 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -247,7 +247,7 @@ PP(pp_rv2gv)
                        STRLEN len;
                        SV *namesv = PL_curpad[cUNOP->op_targ];
                        name = SvPV(namesv, len);
-                       gv = (GV*)NEWSV(0,len);
+                       gv = (GV*)NEWSV(0,0);
                        gv_init(gv, CopSTASH(PL_curcop), name, len, 0);
                    }
                    else {