From: Perl 5 Porters Date: Tue, 2 Jan 1996 03:32:50 +0000 (+0000) Subject: VMS changes ? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd0af264cfc969f4623f421719ccd55177a389c6;p=p5sagit%2Fp5-mst-13.2.git VMS changes ? --- diff --git a/pp_sys.c b/pp_sys.c index d7a6574..d80449e 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -3252,7 +3252,8 @@ PP(pp_ghostent) PUSHs(sv = sv_newmortal()); if (hent) { if (which == OP_GHBYNAME) { - sv_setpvn(sv, hent->h_addr, hent->h_length); + if (hent->h_addr) + sv_setpvn(sv, hent->h_addr, hent->h_length); } else sv_setpv(sv, (char*)hent->h_name); @@ -3281,7 +3282,8 @@ PP(pp_ghostent) } #else PUSHs(sv = sv_mortalcopy(&sv_no)); - sv_setpvn(sv, hent->h_addr, len); + if (hent->h_addr) + sv_setpvn(sv, hent->h_addr, len); #endif /* h_addr */ } RETURN;