summaryrefslogtreecommitdiffstats
path: root/modules/http2
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-06-20 09:21:58 +0200
committerStefan Eissing <icing@apache.org>2022-06-20 09:21:58 +0200
commitf846838bd6118f0a2948852272fd8e6c65cc9712 (patch)
treed1a689ec17f8f23cf567a01e9e722cc0ac2e777e /modules/http2
parent* Use s directly like in the other ap_log_error calls (diff)
downloadapache2-f846838bd6118f0a2948852272fd8e6c65cc9712.tar.xz
apache2-f846838bd6118f0a2948852272fd8e6c65cc9712.zip
*) 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
Diffstat (limited to 'modules/http2')
-rw-r--r--modules/http2/h2_workers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/http2/h2_workers.c b/modules/http2/h2_workers.c
index a55d1a6167..4a71760d33 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)",