From: Stefan Eissing Date: Mon, 20 Jun 2022 07:21:58 +0000 (+0000) Subject: *) mod_http2: init local var since write in loop may be buypassed. X-Git-Tag: 2.5.0-alpha2-ci-test-only~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f846838bd6118f0a2948852272fd8e6c65cc9712;p=thirdparty%2Fapache%2Fhttpd.git *) mod_http2: init local var since write in loop may be buypassed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1902082 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_workers.c b/modules/http2/h2_workers.c index a55d1a6167e..4a71760d339 100644 --- a/modules/http2/h2_workers.c +++ b/modules/http2/h2_workers.c @@ -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)",