fix some uninitialized members

This commit is contained in:
Arvid Norberg 2014-01-18 06:53:47 +00:00
parent a24157c4d9
commit b283d58899
4 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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);

View File

@ -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;