Skip to content

Commit

Permalink
Merge pull request #3434
Browse files Browse the repository at this point in the history
b1398ff core: fix use of uninitialised data (moneromooo-monero)
  • Loading branch information
fluffypony committed Mar 19, 2018
2 parents 2c145f4 + b1398ff commit 8361d60
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 8361d60

Please sign in to comment.