]> granicus.if.org Git - apache/commitdiff
Get the call to find_string() out of a loop. find_string() loops
authorJeff Trawick <trawick@apache.org>
Thu, 21 Sep 2000 16:32:48 +0000 (16:32 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 21 Sep 2000 16:32:48 +0000 (16:32 +0000)
across the buckets internally.  This gets rid of a compile warning
but doesn't change the behavior.
Inspired by: "Victor J. Orlikowski" <v.j.orlikowski@gte.net>

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

modules/filters/mod_include.c

index 8299bed66da78df32a3400ceb624009be61102ae..9c106c298f8838da7cc120dc647c8ac16063b9e2 100644 (file)
@@ -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