p4raw-id: //depot/perl@9330
*tend-- = '\0';
if (num_svs) {
/* New style explict name, type is just mode and discipline/layer info */
- STRLEN l;
- name = SvOK(*svp) ? SvPV(*svp, l) : "";
+ STRLEN l = 0;
+ name = SvOK(*svp) && (*svp != &PL_sv_undef) ? SvPV(*svp, l) : "";
len = (I32)l;
name = savepvn(name, len);
SAVEFREEPV(name);