summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2003-12-06 12:13:32 -0600
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-12-07 20:13:47 +0000
commited25396338133f61e03f805417cf71c3369ece94 (patch)
tree4552cbb432620320039ba98b345f92fa743b6340 /vms
parent243d6ab3aef600d61cccf45a3b1140e272a49e86 (diff)
downloadperl-ed25396338133f61e03f805417cf71c3369ece94.tar.gz
setenv tweak for VMS
From: "Craig A. Berry" <craigberry@mac.com> Message-ID: <3FD270AC.3000106@mac.com> p4raw-id: //depot/perl@21864
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 65d1cbb1bf..10bec6813b 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -714,6 +714,11 @@ Perl_vmssetenv(pTHX_ char *lnm, char *eqv, struct dsc$descriptor_s **tabvec)
$DESCRIPTOR(crtlenv,"CRTL_ENV"); $DESCRIPTOR(clisym,"CLISYM");
$DESCRIPTOR(local,"_LOCAL");
+ if (!lnm) {
+ set_errno(EINVAL); set_vaxc_errno(SS$_IVLOGNAM);
+ return SS$_IVLOGNAM;
+ }
+
for (cp1 = lnm, cp2 = uplnm; *cp1; cp1++, cp2++) {
*cp2 = _toupper(*cp1);
if (cp1 - lnm > LNM$C_NAMLENGTH) {