summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-09 13:52:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-09 13:52:50 +0000
commite956e27a94f466949439d93a695bd66abfb7dbef (patch)
tree12ba7da9beb06660c2547c4356e58548c0547a01 /vms
parent1a4e82511178752ebf6545d1b9461d1a9f55816a (diff)
downloadperl-e956e27a94f466949439d93a695bd66abfb7dbef.tar.gz
Seems that a glob(undef) triggers an ACCVIO in Perl_flex_stat
Seems that a glob(undef) triggers an ACCVIO in Perl_flex_stat, when a NULL is passed for the filename string pointer. From Charles Lane. p4raw-id: //depot/perl@12381
Diffstat (limited to 'vms')
-rw-r--r--vms/vms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index c076809778..fd02f851bd 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -6378,6 +6378,7 @@ Perl_flex_stat(pTHX_ const char *fspec, Stat_t *statbufp)
char temp_fspec[NAM$C_MAXRSS+300];
int retval = -1;
+ if (!fspec) return retval;
strcpy(temp_fspec, fspec);
if (statbufp == (Stat_t *) &PL_statcache)
do_tovmsspec(temp_fspec,namecache,0);