]> granicus.if.org Git - apache/commitdiff
minimal changes to get it to compile
authorJeff Trawick <trawick@apache.org>
Sat, 4 Aug 2001 11:37:12 +0000 (11:37 +0000)
committerJeff Trawick <trawick@apache.org>
Sat, 4 Aug 2001 11:37:12 +0000 (11:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89920 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_negotiation.c

index 30392adc8232cac01d2ef5ec460bf4cc2dddb7d1..946bac576149b8dffe50855d4ee26c88a8e30da2 100644 (file)
@@ -988,20 +988,22 @@ static int read_types_multi(negotiation_state *neg)
          * since the exceptions result is index.foo - this should be
          * fixed as part of a new match-parts logic here.
          */
-        char *base = apr_array_pstrcat(sub_req->pool, exception_list, '.');
-        int base_len = strlen(base);
-        if (base_len > prefix_len 
+        {
+            char *base = apr_array_pstrcat(sub_req->pool, exception_list, '.');
+            int base_len = strlen(base);
+            if (base_len > prefix_len 
 #ifdef CASE_BLIND_FILESYSTEM
-            || strncasecmp(base, filp, base_len)
+                || strncasecmp(base, filp, base_len)
 #else
-            || strncmp(base, filp, base_len)
+                || strncmp(base, filp, base_len)
 #endif
-            || (prefix_len > base_len && filp[base_len] != '.')) {
-            /* 
-             * Something you don't know is, something you don't know...
-             */
-            ap_destroy_sub_req(sub_req);
-            continue;
+                || (prefix_len > base_len && filp[base_len] != '.')) {
+                /* 
+                 * Something you don't know is, something you don't know...
+                 */
+                ap_destroy_sub_req(sub_req);
+                continue;
+            }
         }
 
         /* 
@@ -1009,7 +1011,7 @@ static int read_types_multi(negotiation_state *neg)
          * picked up here!  If we failed the subrequest, or don't 
          * know what we are serving, then continue.
          */
-        if (sub_req->status != HTTP_OK || (!sub_req->content_type) {
+        if (sub_req->status != HTTP_OK || (!sub_req->content_type)) {
             ap_destroy_sub_req(sub_req);
             continue;
         }