]> granicus.if.org Git - apache/commitdiff
Merge r1503990, r1503991 from trunk:
authorJim Jagielski <jim@apache.org>
Wed, 7 Aug 2013 11:44:33 +0000 (11:44 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 7 Aug 2013 11:44:33 +0000 (11:44 +0000)
Have static analyser tool happy.
Point 2 of PR 54936

Potential use of uninitialized memory.
Point 3 of PR 54936
Submitted by: jailletc36
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1511265 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/proxy/proxy_util.c
server/scoreboard.c

diff --git a/STATUS b/STATUS
index 2fdc6378b2ec2f81147585544be5ae0abcca2208..6d55406245897b30b68e762887ad74f92f0fe5a8 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -93,16 +93,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
 
-  * easy votes:
-       - Have static analyser tool happy
-        - Potential use of uninitialized memory
-    PR54936 [Zhenbo Xu <zhenbo1987 gmail com>]
-    trunk: http://svn.apache.org/r1503990
-           http://svn.apache.org/r1503991
-    2.4.x patch: trunk patches work
-    +1: jailletc36, trawick, jim
-
-
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 67dc93943bd8ee1e7e63a0d72389ca1721523498..5dff7f458b38d9a303f61ddf67a64cfa972399b3 100644 (file)
@@ -386,7 +386,7 @@ PROXY_DECLARE(int) ap_proxyerror(request_rec *r, int statuscode, const char *mes
 static const char *
      proxy_get_host_of_request(request_rec *r)
 {
-    char *url, *user = NULL, *password = NULL, *err, *host;
+    char *url, *user = NULL, *password = NULL, *err, *host = NULL;
     apr_port_t port;
 
     if (r->hostname != NULL) {
index bef2b90908a98d250483b2437704560b6c583d2f..24e9bc61faae9f642d2ae857041921f1adee580b 100644 (file)
@@ -389,7 +389,7 @@ AP_DECLARE(void) ap_increment_counts(ap_sb_handle_t *sb, request_rec *r)
 AP_DECLARE(int) ap_find_child_by_pid(apr_proc_t *pid)
 {
     int i;
-    int max_daemons_limit;
+    int max_daemons_limit = 0;
 
     ap_mpm_query(AP_MPMQ_MAX_DAEMONS, &max_daemons_limit);