httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_autoindex.c
Date Thu, 07 Feb 2002 06:50:52 GMT
jerenkrantz    02/02/06 22:50:52

  Modified:    modules/generators mod_autoindex.c
  Log:
  That check is superfluous since we must have savename defined
  (otherwise, we'd get APR_INCOMPLETE on apr_dir_read).
  
  Revision  Changes    Path
  1.97      +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.96
  retrieving revision 1.97
  diff -u -r1.96 -r1.97
  --- mod_autoindex.c	7 Feb 2002 06:37:09 -0000	1.96
  +++ mod_autoindex.c	7 Feb 2002 06:50:52 -0000	1.97
  @@ -2044,10 +2044,8 @@
                   continue;
               }
               memcpy(&dirent, &fi, sizeof(fi));
  -            if (savename) {
  -                dirent.name = savename;
  -                dirent.valid |= APR_FINFO_NAME;
  -            }
  +            dirent.name = savename;
  +            dirent.valid |= APR_FINFO_NAME;
           }
           p = make_autoindex_entry(&dirent, autoindex_opts, autoindex_conf, r, 
                                    keyid, direction, pstring);
  
  
  

Mime
View raw message