aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-11-04 11:28:35 +0100
committerChristian Grothoff <christian@grothoff.org>2016-11-04 11:28:35 +0100
commit11f00055cf8dd339dfdb7f2e2b1fadbff811fae2 (patch)
tree6c64910944a9e18254d94d70a2677a9ad7d0cc70
parentec46999ff566a16c79af63ecd5a80dc759507258 (diff)
downloadlibmicrohttpd-11f00055cf8dd339dfdb7f2e2b1fadbff811fae2.tar.gz
libmicrohttpd-11f00055cf8dd339dfdb7f2e2b1fadbff811fae2.zip
style fix: this 'const' is at best confusing, as we are about to free
-rw-r--r--src/microhttpd/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 3b17e0c3..a85e5903 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3010,7 +3010,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
3010 /* Response is not required anymore for this conectnion. */ 3010 /* Response is not required anymore for this conectnion. */
3011 if (NULL != connection->response) 3011 if (NULL != connection->response)
3012 { 3012 {
3013 struct MHD_Response * const resp_clr = connection->response; 3013 struct MHD_Response *resp_clr = connection->response;
3014
3014 connection->response = NULL; 3015 connection->response = NULL;
3015 MHD_destroy_response (resp_clr); 3016 MHD_destroy_response (resp_clr);
3016 } 3017 }