aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-11-04 11:30:20 +0100
committerChristian Grothoff <christian@grothoff.org>2016-11-04 11:30:20 +0100
commite5c74b3a125cee3f4c0dda04d04c9251c8ab116c (patch)
tree4487406c49446da85be1c1f73acd2ee220ca655d
parent11f00055cf8dd339dfdb7f2e2b1fadbff811fae2 (diff)
downloadlibmicrohttpd-e5c74b3a125cee3f4c0dda04d04c9251c8ab116c.tar.gz
libmicrohttpd-e5c74b3a125cee3f4c0dda04d04c9251c8ab116c.zip
style fix: this 'const' is at best confusing, as we are about to free, plus initialize 'daemon' immediately for symmetry
-rw-r--r--src/microhttpd/connection.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index a85e5903..60bf9f65 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -541,10 +541,9 @@ void
541MHD_connection_close_ (struct MHD_Connection *connection, 541MHD_connection_close_ (struct MHD_Connection *connection,
542 enum MHD_RequestTerminationCode termination_code) 542 enum MHD_RequestTerminationCode termination_code)
543{ 543{
544 struct MHD_Daemon *daemon; 544 struct MHD_Daemon *daemon = connection->daemon;
545 struct MHD_Response * const resp = connection->response; 545 struct MHD_Response *resp = connection->response;
546 546
547 daemon = connection->daemon;
548 MHD_connection_mark_closed_ (connection); 547 MHD_connection_mark_closed_ (connection);
549 if (NULL != resp) 548 if (NULL != resp)
550 { 549 {