cid#318856 Uninitialized scalar field

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I2a6c3e9d021884b898f9efdc51c528428321d6f0
This commit is contained in:
Caolán McNamara 2023-06-12 09:15:39 +01:00 committed by Miklos Vajna
parent 2e38ab907c
commit 2f9c9396d3

View file

@ -797,6 +797,9 @@ public:
/// Used for generating an outgoing response.
explicit Response(StatusLine statusLineObj, int fd = -1)
: _statusLine(std::move(statusLineObj))
, _state(State::New)
, _parserStage(ParserStage::StatusLine)
, _recvBodySize(0)
, _fd(fd)
{
_header.add("Date", Util::getHttpTimeNow());