commit 9b7bc3d8bd4042de9288dffe09fd2660293b1d9d
parent 79309bb6026706229fcb651db8b8b37f4ed12885
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 17 Oct 2016 15:49:22 +0200
fix clang warnings
Diffstat:
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
@@ -246,6 +246,10 @@ main ()
if ((key_pem == NULL) || (cert_pem == NULL))
{
printf ("The key/certificate files could not be read.\n");
+ if (NULL != key_pem)
+ free (key_pem);
+ if (NULL != cert_pem)
+ free (cert_pem);
return 1;
}
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -977,6 +977,7 @@ build_header_response (struct MHD_Connection *connection)
must_add_chunked_encoding = MHD_NO;
must_add_keep_alive = MHD_NO;
must_add_content_length = MHD_NO;
+ response_has_keepalive = NULL;
switch (connection->state)
{
case MHD_CONNECTION_FOOTERS_RECEIVED:
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -3584,9 +3584,8 @@ MHD_epoll (struct MHD_Daemon *daemon,
/* we handle resumes here because we may have ready connections
that will not be placed into the epoll list immediately. */
- if ( (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME)) &&
- (MHD_YES == resume_suspended_connections (daemon)) )
- may_block = MHD_NO;
+ if (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME))
+ (void) resume_suspended_connections (daemon);
/* process events for connections */
while (NULL != (pos = daemon->eready_tail))