mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Fix uninitialized variable
Error manifests when using GCC 15.1 with the following flags '-Wall Werror=uninitialized -fhardened'
This commit is contained in:
committed by
Mohammad Nejati
parent
03f0ff33cd
commit
e99590f163
@@ -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)),
|
||||
|
Reference in New Issue
Block a user