From: Jeff Trawick Date: Sat, 12 Jul 2003 13:03:39 +0000 (+0000) Subject: minor style changes X-Git-Tag: pre_ajp_proxy~1454 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad2c145ec1aa42ba78f90e7e0563302431d03a8a;p=apache minor style changes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100562 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 445fbc6a39..8bd8cbab04 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -788,18 +788,20 @@ AP_DECLARE(void) ap_get_mime_headers_core(request_rec *r, apr_bucket_brigade *bb } *value = '\0'; - tmp_field = value; /*Used to trim the whitespace between key */ - ++value; /* token and seperator*/ + tmp_field = value; /* used to trim the whitespace between key + * token and separator + */ + ++value; while (*value == ' ' || *value == '\t') { ++value; /* Skip to start of value */ } /* This check is to avoid any invalid memory reference while - * traversing backwards in the key. To avoid a case where - * the header starts with ':' (or with just some white - * space and the ':') followed by the value - */ - if(tmp_field > last_field) { + * traversing backwards in the key. To avoid a case where + * the header starts with ':' (or with just some white + * space and the ':') followed by the value + */ + if (tmp_field > last_field) { --tmp_field; while ((tmp_field > last_field) && (*tmp_field == ' ' || *tmp_field == '\t')) {