]> granicus.if.org Git - apache/commitdiff
* Minor performance tweak by reusing already calculated strlen in get_body.
authorRuediger Pluem <rpluem@apache.org>
Sat, 19 Nov 2005 20:59:16 +0000 (20:59 +0000)
committerRuediger Pluem <rpluem@apache.org>
Sat, 19 Nov 2005 20:59:16 +0000 (20:59 +0000)
Submitted by: Christophe Jaillet <christophe.jaillet wanadoo.fr>
Reviewed by: Ruediger Pluem

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

CHANGES
modules/mappers/mod_negotiation.c

diff --git a/CHANGES b/CHANGES
index 6573bfbb3273135427b7dabc68b788a3922ab08f..07dfcf7cd966675ddb8a72d83a1982d9b908cad4 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,10 @@
 Changes with Apache 2.3.0
   [Remove entries to the current 2.0 and 2.2 section below, when backported]
 
+  *) mod_negotiation: Minor performance tweak by reusing already calculated
+     strlen.
+     [Ruediger Pluem, Christophe Jaillet <christophe.jaillet wanadoo.fr>]
+
   *) mod_authz_dbd: SQL authz with Login/Session support [Nick Kew]
 
   *) Fix typo in ProxyStatus syntax error message.
index 86a50d797e7892311519c0dd0da75b967d63794e..37c665eb946a34bf721282ac0e0061c5ed31e1f4 100644 (file)
@@ -854,7 +854,7 @@ static apr_off_t get_body(char *buffer, apr_size_t *len, const char *tag,
         return -1;
     }
     bodylen = endbody - buffer;
-    endbody += strlen(tag);
+    endbody += taglen;
     /* Skip all the trailing cruft after the end tag to the next line */
     while (*endbody) {
         if (*endbody == '\n') {