ensure there's a string buffer in the scalar
p4raw-id: //depot/perl@29751
Zero(SvPVX(s->var) + oldcur, newlen - oldcur, char);
/* No SvCUR_set(), though. This is just a seek, not a write. */
}
+ else if (!SvPVX(s->var)) {
+ /* ensure there's always a character buffer */
+ (void)SvGROW(s->var,1);
+ }
SvPOK_on(s->var);
return 0;
}