diff options
author | Geraint Edwards <gedgey@gmail.com> | 2017-12-28 15:53:51 +0000 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2017-12-28 18:43:40 +0100 |
commit | 44de51a174765f7f5ecb250638cdb3fe64ec67dc (patch) | |
tree | a37848a3210ef320c842bac8dd73a559cc272efb /src | |
parent | d51252ebebd7744dd218c4af965ca3d5424648cc (diff) |
Check ARGV before subscripting it
Diffstat (limited to 'src')
-rw-r--r-- | src/src/eximstats.src | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |