]> granicus.if.org Git - apache/commitdiff
* modules/proxy/mod_proxy_balancer.c (proxy_balancer_pre_request): Fix
authorJoe Orton <jorton@apache.org>
Thu, 23 Jun 2005 09:10:09 +0000 (09:10 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 23 Jun 2005 09:10:09 +0000 (09:10 +0000)
another valid variable-may-be-used-uninitialized warning from GCC 4
(in the !balancer->sticky case, find_session_route returns NULL
without setting route).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@193117 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index ab122892f7373421cb6dc6c1a5a214e43b495078..28e03bbc8d34b8320c34027c54b063704be75cf4 100644 (file)
@@ -441,7 +441,7 @@ static int proxy_balancer_pre_request(proxy_worker **worker,
 {
     int access_status;
     proxy_worker *runtime;
-    char *route;
+    char *route = NULL;
     apr_status_t rv;
 
     *worker = NULL;