From: Ruediger Pluem Date: Sat, 19 Nov 2005 20:59:16 +0000 (+0000) Subject: * Minor performance tweak by reusing already calculated strlen in get_body. X-Git-Tag: 2.3.0~2740 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6e065d38c7e08f69f56bba43756fb9d5ce436ad;p=apache * Minor performance tweak by reusing already calculated strlen in get_body. Submitted by: Christophe Jaillet Reviewed by: Ruediger Pluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@345686 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 6573bfbb32..07dfcf7cd9 100644 --- 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 ] + *) mod_authz_dbd: SQL authz with Login/Session support [Nick Kew] *) Fix typo in ProxyStatus syntax error message. diff --git a/modules/mappers/mod_negotiation.c b/modules/mappers/mod_negotiation.c index 86a50d797e..37c665eb94 100644 --- a/modules/mappers/mod_negotiation.c +++ b/modules/mappers/mod_negotiation.c @@ -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') {