Fix uninitialized variable

Error manifests when using GCC 15.1 with the following flags '-Wall Werror=uninitialized -fhardened'
This commit is contained in:
Danijel Zlaus
2025-07-14 20:59:24 +02:00
committed by Mohammad Nejati
parent 03f0ff33cd
commit e99590f163

View File

@@ -213,7 +213,7 @@ read_close(
return;
}
std::uint16_t code_be;
std::uint16_t code_be = {};
cr.reason.resize(n - 2);
std::array<net::mutable_buffer, 2> out_bufs{{
net::mutable_buffer(&code_be, sizeof(code_be)),