]> granicus.if.org Git - apache/commitdiff
When checking for "file" or "virtual" as an argument to
authorBrian Pane <brianp@apache.org>
Fri, 7 Dec 2001 03:09:54 +0000 (03:09 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 7 Dec 2001 03:09:54 +0000 (03:09 +0000)
"<!--#", check for "virtual" first.  That's the more likely
case (assuming that people follow the recommendation in
the mod_include documentation that "virtual" be used in
preference to "file"), so by checking for "virtual" first
we can short-circuit out of the conditional after one
strcmp instead of two.

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

modules/filters/mod_include.c

index 1a3eac5ce226f909a67a238c7ddfef43c226e67e..b3ba17305add03156e891abac401316841efb6b4 100644 (file)
@@ -1034,7 +1034,7 @@ static int handle_include(include_ctx_t *ctx, apr_bucket_brigade **bb,
                     return (1);
                 }
             }
-            if (!strcmp(tag, "file") || !strcmp(tag, "virtual")) {
+            if (!strcmp(tag, "virtual") || !strcmp(tag, "file")) {
                 request_rec *rr = NULL;
                 char *error_fmt = NULL;