aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-20 01:01:14 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-20 01:01:14 +0000
commit0a930d349c92cffb9b53d750f319816f0785286f (patch)
tree40db885ff9e0c37b18af98cda2cb135d8ab2ba3a
parent599ccf8fb50febde09eae05dff329c215ad7e395 (diff)
downloadlibmicrohttpd-0a930d349c92cffb9b53d750f319816f0785286f.tar.gz
libmicrohttpd-0a930d349c92cffb9b53d750f319816f0785286f.zip
-avoid cmp with uninitialized pointer, even if harmless
-rw-r--r--src/microhttpd/connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 40ca942a..020066af 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -834,8 +834,8 @@ build_header_response (struct MHD_Connection *connection)
834 834
835 for (pos = connection->response->first_header; NULL != pos; pos = pos->next) 835 for (pos = connection->response->first_header; NULL != pos; pos = pos->next)
836 if ( (pos->kind == kind) && 836 if ( (pos->kind == kind) &&
837 (! ( (pos->value == response_has_keepalive) && 837 (! ( (MHD_YES == must_add_close) &&
838 (MHD_YES == must_add_close) && 838 (pos->value == response_has_keepalive) &&
839 (0 == strcasecmp (pos->header, 839 (0 == strcasecmp (pos->header,
840 MHD_HTTP_HEADER_CONNECTION) ) ) ) ) 840 MHD_HTTP_HEADER_CONNECTION) ) ) ) )
841 size += strlen (pos->header) + strlen (pos->value) + 4; /* colon, space, linefeeds */ 841 size += strlen (pos->header) + strlen (pos->value) + 4; /* colon, space, linefeeds */