From 0ddc51e4739a51381f5085ec9faca556fe678f04 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 21 Sep 2000 16:32:48 +0000 Subject: [PATCH] Get the call to find_string() out of a loop. find_string() loops across the buckets internally. This gets rid of a compile warning but doesn't change the behavior. Inspired by: "Victor J. Orlikowski" git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86279 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_include.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/filters/mod_include.c b/modules/filters/mod_include.c index 8299bed66d..9c106c298f 100644 --- a/modules/filters/mod_include.c +++ b/modules/filters/mod_include.c @@ -2293,10 +2293,7 @@ static void send_parsed_content(ap_bucket_brigade **bb, request_rec *r, if ((tagbuck = find_string(dptr, STARTING_SEQUENCE, AP_BRIGADE_LAST(*bb))) != NULL) { dptr2 = tagbuck; dptr = tagbuck; - while (dptr2 != AP_BRIGADE_SENTINEL(*bb) && - (endsec = find_string(dptr2, ENDING_SEQUENCE, AP_BRIGADE_LAST(*bb))) == NULL) { - dptr2 = AP_BUCKET_NEXT(dptr2); - } + endsec = find_string(dptr2, ENDING_SEQUENCE, AP_BRIGADE_LAST(*bb)); if (endsec == NULL) { /** XXX No ending tag, needs to become an error bucket ** Tag could come in the next brigade (unless we've -- 2.50.1