]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_http2: init local var since write in loop may be buypassed.
authorStefan Eissing <icing@apache.org>
Mon, 20 Jun 2022 07:21:58 +0000 (07:21 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 20 Jun 2022 07:21:58 +0000 (07:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1902082 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_workers.c

index a55d1a6167e16d17620ed426eb2efa668f51bffe..4a71760d33982f9baf7273decf4222f1a6eec55e 100644 (file)
@@ -364,7 +364,7 @@ static apr_status_t workers_pool_cleanup(void *data)
     h2_workers *workers = data;
     apr_time_t end, timeout = apr_time_from_sec(1);
     apr_status_t rv;
-    int n, wait_sec = 5;
+    int n = 0, wait_sec = 5;
 
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, workers->s,
                  "h2_workers: cleanup %d workers (%d idle)",