]> granicus.if.org Git - apache/commitdiff
minor optimization. No need to use a function overhead here.
authorAndré Malo <nd@apache.org>
Tue, 15 Jul 2003 20:38:04 +0000 (20:38 +0000)
committerAndré Malo <nd@apache.org>
Tue, 15 Jul 2003 20:38:04 +0000 (20:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100637 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_rewrite.c

index e1afa59e64904eb84d78ee9ddd0b990ed7132a44..22c81ade920293dcb311f69f15d5b65e5ce62c87 100644 (file)
@@ -2103,7 +2103,7 @@ static int apply_rewrite_rule(request_rec *r, rewriterule_entry *p,
      *  cookies:
      *  (`RewriteRule <pat> - [E=...,CO=...]')
      */
-    if (strcmp(output, "-") == 0) {
+    if (output[0] == '-' && !output[1]) {
         do_expand_env(r, p->env, briRR, briRC);
         do_expand_cookie(r, p->cookie, briRR, briRC);
         if (p->forced_mimetype != NULL) {