]> granicus.if.org Git - apache/commitdiff
a pointer optim.
authorJim Jagielski <jim@apache.org>
Fri, 5 Nov 2010 21:17:05 +0000 (21:17 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 5 Nov 2010 21:17:05 +0000 (21:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1031798 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index ea53d0570db864bbaf5bbff939e6f44d2811d314..d53825e786b0b1c742ebdb5f1547c83bd53069b4 100644 (file)
@@ -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';