summaryrefslogtreecommitdiff
path: root/vms/vms.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2007-11-29 18:29:40 +0000
committerCraig A. Berry <craigberry@mac.com>2007-11-29 18:29:40 +0000
commitcd43acd7f6d96351d9ade59be60f84c5989ee3b6 (patch)
treec706ea7f6c44602e85aa8b732bdadb570f0fa341 /vms/vms.c
parent1313c7b1895233213fe08a385455594c773f4128 (diff)
downloadperl-cd43acd7f6d96351d9ade59be60f84c5989ee3b6.tar.gz
Make VMS::Filespec::vms_realname return undef instead of garbage
when it fails. p4raw-id: //depot/perl@32556
Diffstat (limited to 'vms/vms.c')
-rw-r--r--vms/vms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index a45dee5662..e81c0458a3 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -13179,7 +13179,10 @@ mp_do_vms_realname(pTHX_ const char *filespec, char *outbuf,
/* Fall back to fid_to_name */
sts = vms_fid_to_name(outbuf, VMS_MAXRSS + 1, filespec);
- if (sts == 0) {
+ if (sts != 0) {
+ return NULL;
+ }
+ else {
/* Now need to trim the version off */