Skip to content

Commit

Permalink
core: fix use of uninitialised data
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Mar 18, 2018
1 parent 5710edf commit b1398ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cryptonote_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ namespace cryptonote
MAINNET = 0,
TESTNET,
STAGENET,
FAKECHAIN
FAKECHAIN,
UNDEFINED = 255
};
}
3 changes: 2 additions & 1 deletion src/cryptonote_core/cryptonote_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ namespace cryptonote
m_last_json_checkpoints_update(0),
m_disable_dns_checkpoints(false),
m_threadpool(tools::threadpool::getInstance()),
m_update_download(0)
m_update_download(0),
m_nettype(UNDEFINED)
{
m_checkpoints_updating.clear();
set_cryptonote_protocol(pprotocol);
Expand Down

0 comments on commit b1398ff

Please sign in to comment.