You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2002/09/19 02:57:36 UTC

cvs commit: httpd-2.0/support apxs.in

jerenkrantz    2002/09/18 17:57:35

  Modified:    support  apxs.in
  Log:
  Remove following warning:
  
  Use of uninitialized value in string eq at ./apxs line 134.
  
  when the last option in getopt array is used.
  
  Revision  Changes    Path
  1.45      +2 -2      httpd-2.0/support/apxs.in
  
  Index: apxs.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/apxs.in,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -u -r1.44 -r1.45
  --- apxs.in	7 Aug 2002 12:35:03 -0000	1.44
  +++ apxs.in	19 Sep 2002 00:57:35 -0000	1.45
  @@ -131,7 +131,7 @@
           }
           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 @@
                   }
                   eval "\$opt_$first = \$rest;";
               }
  -            elsif ($args[$pos+1] eq '+') {
  +            elsif ($pos < $#args && $args[$pos+1] eq '+') {
                   shift @ARGV;
                   if ($rest eq '') {
                       unless (@ARGV) {