]> granicus.if.org Git - apache/commitdiff
Make it compile on pre-C99 compilers (Move decls to beginning of func)
authorMartin Kraemer <martin@apache.org>
Mon, 7 Apr 2008 06:28:50 +0000 (06:28 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 7 Apr 2008 06:28:50 +0000 (06:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645395 13f79535-47bb-0310-9956-ffa450edef68

server/request.c

index bec1343733482cce771f133f396c46a287cf5aab..ec844f7af04e6cd9c49843e5c01d4cd0557ad6b5 100644 (file)
@@ -653,8 +653,6 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r)
         char *buf;
         unsigned int seg, startseg;
 
-        cached &= auth_internal_per_conf;
-
         /* Invariant: from the first time filename_len is set until
          * it goes out of scope, filename_len==strlen(r->filename)
          */
@@ -663,6 +661,8 @@ AP_DECLARE(int) ap_directory_walk(request_rec *r)
         apr_size_t canonical_len;
 #endif
 
+        cached &= auth_internal_per_conf;
+
         /*
          * We must play our own mini-merge game here, for the few
          * running dir_config values we care about within dir_walk.