httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_autoindex.c
Date Tue, 07 Aug 2001 15:15:54 GMT
wrowe       01/08/07 08:15:54

  Modified:    modules/generators mod_autoindex.c
  Log:
    Thanks rbb, and the modproxy-dev autobuild report for pointing these out.
  
  Revision  Changes    Path
  1.82      +2 -4      httpd-2.0/modules/generators/mod_autoindex.c
  
  Index: mod_autoindex.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_autoindex.c,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- mod_autoindex.c	2001/08/07 12:54:31	1.81
  +++ mod_autoindex.c	2001/08/07 15:15:53	1.82
  @@ -1420,7 +1420,7 @@
       int desc_width;
       char *name_scratch;
       char *pad_scratch;
  -    char *breakrow;
  +    char *breakrow = "";
   
       apr_pool_create(&scratch, r->pool);
       if (name[0] == '\0') {
  @@ -1499,8 +1499,6 @@
           if (!(autoindex_opts & SUPPRESS_RULES))
               breakrow = apr_psprintf(r->pool, "<tr><th colspan=\"%d\">"
                                                "<hr /></th></tr>\n", cols);
  -        else
  -            breakrow = "";
   	ap_rvputs(r, "</th></tr>", breakrow, NULL);
       }
       else if (autoindex_opts & FANCY_INDEXING) {
  @@ -1907,7 +1905,7 @@
                   qstring += qstring[3] ? 4 : 3;
               }
               else if (qstring[0] == 'P' && qstring[1] == '=') {
  -                char *eos = strchr(qstring, '&');
  +                const char *eos = ap_strchr_c(qstring, '&');
                   if (eos) {
                       pstring = apr_pstrndup(r->pool, qstring + 2, 
                                              eos - qstring - 2);
  
  
  

Mime
View raw message