This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
avoid initializing GvCV slot for autovivified filehandles
authorGurusamy Sarathy <gsar@cpan.org>
Thu, 9 Dec 1999 00:13:06 +0000 (00:13 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
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 {