forked from premiere/premiere-libtorrent
fix some uninitialized members
This commit is contained in:
parent
a24157c4d9
commit
b283d58899
|
@ -520,6 +520,9 @@ namespace libtorrent
|
|||
announce_entry::announce_entry()
|
||||
: next_announce(min_time())
|
||||
, min_announce(min_time())
|
||||
, scrape_incomplete(-1)
|
||||
, scrape_complete(-1)
|
||||
, scrape_downloaded(-1)
|
||||
, tier(0)
|
||||
, fail_limit(0)
|
||||
, fails(0)
|
||||
|
|
|
@ -62,6 +62,7 @@ struct dht_server
|
|||
dht_server()
|
||||
: m_dht_requests(0)
|
||||
, m_socket(m_ios)
|
||||
, m_port(0)
|
||||
{
|
||||
error_code ec;
|
||||
m_socket.open(udp::v4(), ec);
|
||||
|
|
|
@ -58,6 +58,7 @@ struct peer_server
|
|||
peer_server()
|
||||
: m_peer_requests(0)
|
||||
, m_acceptor(m_ios)
|
||||
, m_port(0)
|
||||
{
|
||||
error_code ec;
|
||||
m_acceptor.open(tcp::v4(), ec);
|
||||
|
|
|
@ -237,7 +237,7 @@ using namespace libtorrent;
|
|||
|
||||
struct parse_state
|
||||
{
|
||||
parse_state(): in_service(false) {}
|
||||
parse_state(): in_service(false), service_type("") {}
|
||||
void reset(char const* st)
|
||||
{
|
||||
in_service = false;
|
||||
|
|
Loading…
Reference in New Issue