From: Justin Erenkrantz Date: Thu, 19 Sep 2002 00:57:35 +0000 (+0000) Subject: Remove following warning: X-Git-Tag: WROWE_2_0_43_PRE1~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5cc7007688bf84898b728ba22124fef0b5e27213;p=apache Remove following warning: Use of uninitialized value in string eq at ./apxs line 134. when the last option in getopt array is used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96899 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/apxs.in b/support/apxs.in index 91de152ef7..19e8aa0b3f 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -131,7 +131,7 @@ sub Getopts { } my $pos = index($argumentative,$first); if ($pos >= $[) { - if ($args[$pos+1] eq ':') { + if ($pos < $#args && $args[$pos+1] eq ':') { shift @ARGV; if ($rest eq '') { unless (@ARGV) { @@ -142,7 +142,7 @@ sub Getopts { } eval "\$opt_$first = \$rest;"; } - elsif ($args[$pos+1] eq '+') { + elsif ($pos < $#args && $args[$pos+1] eq '+') { shift @ARGV; if ($rest eq '') { unless (@ARGV) {