From 44de51a174765f7f5ecb250638cdb3fe64ec67dc Mon Sep 17 00:00:00 2001 From: Geraint Edwards Date: Thu, 28 Dec 2017 15:53:51 +0000 Subject: [PATCH] Check ARGV before subscripting it --- src/src/eximstats.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/src/eximstats.src b/src/src/eximstats.src index 76cfe7e97..8eb5cac89 100644 --- a/src/src/eximstats.src +++ b/src/src/eximstats.src @@ -557,7 +557,7 @@ use File::Basename; # use Time::Local; # PH/FANF use POSIX; -if ($ARGV[0] eq '--version') { +if (@ARGV and $ARGV[0] eq '--version') { print basename($0) . ": $0\n", "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n", "perl(runtime): $]\n"; -- 2.30.2