]> granicus.if.org Git - apache/commitdiff
Save a few cycles... do reason to set in_merge if we already have
authorJim Jagielski <jim@apache.org>
Thu, 25 Aug 2011 18:35:55 +0000 (18:35 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 25 Aug 2011 18:35:55 +0000 (18:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1161682 13f79535-47bb-0310-9956-ffa450edef68

modules/http/byterange_filter.c

index bba0a8a66e253a14dcd9b6d25008a8b5f63e2034..48eaa3388c18135049fcfd38f2695213cba589c9 100644 (file)
@@ -578,14 +578,14 @@ static int ap_set_byterange(request_rec *r)
             ostart = start;
             in_merge = 1;
         }
-        if (start < oend) {
+        else if (start < oend) {
             in_merge = 1;
         }
         if ((end-1) >= oend) {
             oend = end;
             in_merge = 1;
         }
-        if (end > ostart && end < oend) {
+        else if (end > ostart && end < oend) {
             in_merge = 1;
         }
         if (in_merge) {