Perl_save_scalar.
p4raw-id: //depot/perl@27322
Perl_save_scalar(pTHX_ GV *gv)
{
dVAR;
- SV ** const sptr = &GvSV(gv);
+ SV ** const sptr = &GvSVn(gv);
PL_localizing = 1;
SvGETMAGIC(*sptr);
PL_localizing = 0;
IoFLAGS(gp->gp_io) |= IOf_ARGV|IOf_START;
}
GvGP(gv) = gp_ref(gp);
+#ifndef PERL_DONT_CREATE_GVSV
GvSV(gv) = newSV(0);
+#endif
GvLINE(gv) = CopLINE(PL_curcop);
/* XXX Ideally this cast would be replaced with a change to const char*
in the struct. */