httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Thu, 31 Jul 2003 16:56:28 GMT
nd          2003/07/31 09:56:28

  Modified:    modules/mappers mod_rewrite.c
  Log:
  gcc doesn't catch the logic and throws a warning about uninitialized
  fname. Get a rid of it.
  
  Revision  Changes    Path
  1.209     +2 -8      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.208
  retrieving revision 1.209
  diff -u -r1.208 -r1.209
  --- mod_rewrite.c	30 Jul 2003 21:04:31 -0000	1.208
  +++ mod_rewrite.c	31 Jul 2003 16:56:28 -0000	1.209
  @@ -2665,10 +2665,10 @@
       }
       else if (strncasecmp(a2, "dbm", 3) == 0) {
           const char *ignored_fname;
  -        int bad = 0;
           apr_status_t rv;
   
           newmap->type = MAPTYPE_DBM;
  +        fname = NULL;
   
           if (a2[3] == ':') {
               newmap->dbmtype = "default";
  @@ -2682,15 +2682,9 @@
                                                  colon - (a2 + 3) - 1);
                   fname = colon + 1;
               }
  -            else {
  -                ++bad;
  -            }
  -        }
  -        else {
  -            ++bad;
           }
   
  -        if (bad) {
  +        if (!fname) {
               return apr_pstrcat(cmd->pool, "RewriteMap: bad map:",
                                  a2, NULL);
           }
  
  
  

Mime
View raw message