diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-11-29 18:29:40 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-11-29 18:29:40 +0000 |
commit | cd43acd7f6d96351d9ade59be60f84c5989ee3b6 (patch) | |
tree | c706ea7f6c44602e85aa8b732bdadb570f0fa341 /vms/vms.c | |
parent | 1313c7b1895233213fe08a385455594c773f4128 (diff) | |
download | perl-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 */ |