summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2005-11-19 21:59:16 +0100
committerRuediger Pluem <rpluem@apache.org>2005-11-19 21:59:16 +0100
commite6e065d38c7e08f69f56bba43756fb9d5ce436ad (patch)
tree4314a2285362d6bd746a55b1ecbad99d8f4a0a65 /modules
parentfix eol-style (diff)
downloadapache2-e6e065d38c7e08f69f56bba43756fb9d5ce436ad.tar.xz
apache2-e6e065d38c7e08f69f56bba43756fb9d5ce436ad.zip
* Minor performance tweak by reusing already calculated strlen in get_body.
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
Diffstat (limited to 'modules')
-rw-r--r--modules/mappers/mod_negotiation.c2
1 files changed, 1 insertions, 1 deletions
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') {