]> granicus.if.org Git - apache/commitdiff
Folks, this is not C++. Please, pay attention to your patches
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Feb 2010 04:19:13 +0000 (04:19 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 4 Feb 2010 04:19:13 +0000 (04:19 +0000)
and don't leave trunk deliberately broken.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@906357 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index 30d1ce7926d6396f4fae421c4f913ffe5eb3ace3..095b0ca81ce8ff55f941a286f974e9c57a6bc4cc 100644 (file)
@@ -992,6 +992,7 @@ static void do_emit_plain(request_rec *r, apr_file_t *f)
 static void emit_head(request_rec *r, char *header_fname, int suppress_amble,
                       int emit_xhtml, char *title)
 {
+    autoindex_config_rec *d;
     apr_table_t *hdrs = r->headers_in;
     apr_file_t *f = NULL;
     request_rec *rr = NULL;
@@ -1095,7 +1096,6 @@ static void emit_head(request_rec *r, char *header_fname, int suppress_amble,
         emit_preamble(r, emit_xhtml, title);
     }
     
-    autoindex_config_rec *d;
     d = (autoindex_config_rec *) ap_get_module_config(r->per_dir_config, &autoindex_module);
     
     if (emit_H1) {