forked from premiere/premiere-libtorrent
initialize uninitialized members
This commit is contained in:
parent
86b4c78871
commit
3a2916b578
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue