From: Jim Jagielski Date: Fri, 5 Nov 2010 21:17:05 +0000 (+0000) Subject: a pointer optim. X-Git-Tag: 2.3.9~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a280069b3c123e778e20fb6b2ef0d8a8fde58e69;p=apache a pointer optim. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1031798 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index ea53d0570d..d53825e786 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -175,12 +175,11 @@ static char *get_cookie_param(request_rec *r, const char *name) start_cookie += strlen(name); while(*start_cookie && isspace(*start_cookie)) ++start_cookie; - if (*start_cookie == '=' && start_cookie[1]) { + if (*start_cookie++ == '=' && *start_cookie) { /* * Session cookie was found, get it's value */ char *end_cookie, *cookie; - ++start_cookie; cookie = apr_pstrdup(r->pool, start_cookie); if ((end_cookie = strchr(cookie, ';')) != NULL) *end_cookie = '\0';