commit d478fcfb48fb3b9cc103b7d5cac98f86ccfde23f
parent 79868fab86a33a2c28602ad782a57a181512b18e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 25 Aug 2021 17:15:38 +0300
connection.c: Ensure that variable is initialized
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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;