]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Fix compiler warning about unused variable
authorRuediger Pluem <rpluem@apache.org>
Wed, 13 Oct 2021 07:29:28 +0000 (07:29 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 13 Oct 2021 07:29:28 +0000 (07:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894181 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_switch.c

index f0c7e4dd927c3f201c796cbc95af45efe2a7c21c..12dd3e8abf947579823c2006cd653a6f2b4b6859 100644 (file)
@@ -146,11 +146,9 @@ static int h2_protocol_switch(conn_rec *c, request_rec *r, server_rec *s,
     }
     
     if (found) {
-        h2_conn_ctx_t *ctx;
-
         ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
                       "switching protocol to '%s'", protocol);
-        ctx = h2_conn_ctx_create_for_c1(c, s, protocol);
+        h2_conn_ctx_create_for_c1(c, s, protocol);
 
         if (r != NULL) {
             apr_status_t status;