[exim-dev] [Bug 2259] New: exiqsumm $ARGV[0] check throws wa…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 2259] New: exiqsumm $ARGV[0] check throws warning
https://bugs.exim.org/show_bug.cgi?id=2259

            Bug ID: 2259
           Summary: exiqsumm $ARGV[0] check throws warning
           Product: Exim
           Version: 4.90
          Hardware: x86
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Unfiled
          Assignee: graeme@???
          Reporter: graeme@???
                CC: exim-dev@???


[graeme@mta-1 ~]# exipick -z | exiqsumm 1>/dev/null
Use of uninitialized value $ARGV[0] in string eq at /usr/sbin/exiqsumm line 48.

Line 48:

if ($ARGV[0] eq '--version') {
    print basename($0) . ": $0\n",
        "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n",
        "perl(runtime): $]\n";
        exit 0;
}


Better as

if (@ARGV && $ARGV[0] eq '--version') {
    print basename($0) . ": $0\n",
        "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n",
        "perl(runtime): $]\n";
        exit 0;
}


--
You are receiving this mail because:
You are on the CC list for the bug.