From d478fcfb48fb3b9cc103b7d5cac98f86ccfde23f Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Wed, 25 Aug 2021 17:15:38 +0300 Subject: [PATCH] connection.c: Ensure that variable is initialized --- src/microhttpd/connection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index c86dadf5..51574113 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -1732,6 +1732,8 @@ setup_reply_properties (struct MHD_Connection *connection) c->keepalive = MHD_CONN_MUST_CLOSE; } } + else + use_chunked = false; /* Actually it must not be used without body */ c->rp_props.chunked = use_chunked; c->rp_props.set = true;