summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2015-10-15 09:12:21 -0500
committerCraig A. Berry <craigberry@mac.com>2015-10-15 12:22:43 -0500
commit2aa28b861421a2e3084b5a6b4f179b54ea0d2faa (patch)
tree4d96ac6f47a5b2bb6977b4e55ff6558f890b7263 /util.c
parent0cc19a439196f84cece8e6a23b363e42790c834d (diff)
downloadperl-2aa28b861421a2e3084b5a6b4f179b54ea0d2faa.tar.gz
VMS-specific statbuf in Perl_find_script.
In 97466d2cbf895b I added a declaration at function scope, but in some paths that was overridden at an inner scope, leaving the function-level one declared but not used. So lets go back to the original intent of 45a23732c73c8 and have a separate declaration in each block that needs it.
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 967c9ef2c6..ab468fec5f 100644
--- a/util.c
+++ b/util.c
@@ -3310,6 +3310,7 @@ Perl_find_script(pTHX_ const char *scriptname, bool dosearch,
while (deftypes ||
(!hasdir && my_trnlnm("DCL$PATH",tmpbuf,idx++)) )
{
+ Stat_t statbuf;
if (deftypes) {
deftypes = 0;
*tmpbuf = '\0';