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
}
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) {
}
eval "\$opt_$first = \$rest;";
}
- elsif ($args[$pos+1] eq '+') {
+ elsif ($pos < $#args && $args[$pos+1] eq '+') {
shift @ARGV;
if ($rest eq '') {
unless (@ARGV) {