From 0d7f9a32659e168e4abbda6899ce5c82010f4926 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 26 Feb 2019 17:06:04 +0000 Subject: [PATCH] Fix GCC warning if first "goto cleanup" branch is taken. mod_proxy_http2.c: In function 'proxy_http2_handler': mod_proxy_http2.c:460:12: error: 'status' may be used uninitialized in this function [-Werror=maybe-uninitialized] if (status != APR_SUCCESS) { ^ --- mod_http2/mod_proxy_http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_http2/mod_proxy_http2.c b/mod_http2/mod_proxy_http2.c index 8479d7a..bb6880e 100644 --- a/mod_http2/mod_proxy_http2.c +++ b/mod_http2/mod_proxy_http2.c @@ -358,7 +358,7 @@ static int proxy_http2_handler(request_rec *r, ctx->flushall = apr_table_get(r->subprocess_env, "proxy-flushall")? 1 : 0; ctx->req_buffer_size = (32*1024); ctx->r = r; - ctx->r_status = HTTP_SERVICE_UNAVAILABLE; + ctx->r_status = status = HTTP_SERVICE_UNAVAILABLE; ctx->r_done = 0; ctx->r_may_retry = 1;