commit 11f00055cf8dd339dfdb7f2e2b1fadbff811fae2
parent ec46999ff566a16c79af63ecd5a80dc759507258
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 4 Nov 2016 11:28:35 +0100
style fix: this 'const' is at best confusing, as we are about to free
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -3010,7 +3010,8 @@ MHD_connection_handle_idle (struct MHD_Connection *connection)
/* Response is not required anymore for this conectnion. */
if (NULL != connection->response)
{
- struct MHD_Response * const resp_clr = connection->response;
+ struct MHD_Response *resp_clr = connection->response;
+
connection->response = NULL;
MHD_destroy_response (resp_clr);
}