mirror of
https://github.com/monero-project/monero.git
synced 2024-12-24 12:39:59 +00:00
core: fix use of uninitialised data
This commit is contained in:
parent
5710edf040
commit
d4d1afd688
2 changed files with 4 additions and 2 deletions
|
@ -200,6 +200,7 @@ namespace cryptonote
|
||||||
MAINNET = 0,
|
MAINNET = 0,
|
||||||
TESTNET,
|
TESTNET,
|
||||||
STAGENET,
|
STAGENET,
|
||||||
FAKECHAIN
|
FAKECHAIN,
|
||||||
|
UNDEFINED = 255
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,7 +171,8 @@ namespace cryptonote
|
||||||
m_last_json_checkpoints_update(0),
|
m_last_json_checkpoints_update(0),
|
||||||
m_disable_dns_checkpoints(false),
|
m_disable_dns_checkpoints(false),
|
||||||
m_threadpool(tools::threadpool::getInstance()),
|
m_threadpool(tools::threadpool::getInstance()),
|
||||||
m_update_download(0)
|
m_update_download(0),
|
||||||
|
m_nettype(UNDEFINED)
|
||||||
{
|
{
|
||||||
m_checkpoints_updating.clear();
|
m_checkpoints_updating.clear();
|
||||||
set_cryptonote_protocol(pprotocol);
|
set_cryptonote_protocol(pprotocol);
|
||||||
|
|
Loading…
Reference in a new issue