diff --git a/include/libtorrent/http_seed_connection.hpp b/include/libtorrent/http_seed_connection.hpp index dba6b1355..2b06b796c 100644 --- a/include/libtorrent/http_seed_connection.hpp +++ b/include/libtorrent/http_seed_connection.hpp @@ -117,10 +117,10 @@ namespace libtorrent // this is const since it's used as a key in the web seed list in the torrent // if it's changed referencing back into that list will fail const std::string m_url; - + // the number of bytes left to receive of the response we're // currently parsing - size_type m_response_left; + size_type m_response_left; // this is the offset inside the current receive // buffer where the next chunk header will be. diff --git a/src/http_seed_connection.cpp b/src/http_seed_connection.cpp index 0bca75fc1..bf3722e89 100644 --- a/src/http_seed_connection.cpp +++ b/src/http_seed_connection.cpp @@ -65,6 +65,7 @@ namespace libtorrent , web_seed_entry::headers_t const& extra_headers) : web_connection_base(ses, t, s, remote, url, peerinfo, auth, extra_headers) , m_url(url) + , m_response_left(0) , m_chunk_pos(0) , m_partial_chunk_header(0) { diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index e2c7029ba..ecc92fb38 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -643,7 +643,8 @@ namespace libtorrent } torrent_info::torrent_info(std::string const& filename, int flags) - : m_piece_hashes(0) + : m_merkle_first_leaf(0) + , m_piece_hashes(0) , m_creation_date(0) , m_info_section_size(0) , m_multifile(false) @@ -695,7 +696,8 @@ namespace libtorrent #endif torrent_info::torrent_info(lazy_entry const& torrent_file, error_code& ec, int flags) - : m_piece_hashes(0) + : m_merkle_first_leaf(0) + , m_piece_hashes(0) , m_creation_date(0) , m_info_section_size(0) , m_multifile(false) diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index cbc3e57e1..e44a5e5f0 100644 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -71,6 +71,7 @@ namespace libtorrent , web_seed_entry::headers_t const& extra_headers) : web_connection_base(ses, t, s, remote, url, peerinfo, auth, extra_headers) , m_url(url) + , m_received_body(0) , m_range_pos(0) , m_block_pos(0) , m_chunk_pos(0)