mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 11:24:30 +00:00
Fixed incorrect initialization of boost::optional<size_t>...
...class member and resulting floating point error. network_asio::connection::bytes_to_read_ should be default initialized, not zero initalized.
This commit is contained in:
parent
8c616fe491
commit
c684881bd5
@ -31,7 +31,7 @@ connection::connection(const std::string& host, const std::string& service)
|
||||
, write_buf_()
|
||||
, read_buf_()
|
||||
, handshake_response_()
|
||||
, bytes_to_read_(0)
|
||||
, bytes_to_read_()
|
||||
, bytes_read_(0)
|
||||
{
|
||||
resolver_.async_resolve(
|
||||
|
Loading…
x
Reference in New Issue
Block a user