From 94bfb8fefa3a1db40df1576e3f2e3d854df05aaf Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sat, 4 Aug 2001 11:37:12 +0000 Subject: [PATCH] minimal changes to get it to compile git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89920 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mappers/mod_negotiation.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index 30392adc82..946bac5761 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -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; } -- 2.40.0