diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-03-19 12:51:01 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-03-19 12:51:01 +0200 |
commit | c31780678eb701740e996cbf7bf84e9209a5d143 (patch) | |
tree | 473e738892888ae70ce2dc7e7e7d261a81648cbd | |
parent | Merge pull request #3432 (diff) | |
parent | core: fix use of uninitialised data (diff) | |
download | monero-c31780678eb701740e996cbf7bf84e9209a5d143.tar.xz |
Merge pull request #3441
d4d1afd6 core: fix use of uninitialised data (moneromooo-monero)
-rw-r--r-- | src/cryptonote_config.h | 3 | ||||
-rw-r--r-- | src/cryptonote_core/cryptonote_core.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 0ad8a6005..3e64073dd 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -200,6 +200,7 @@ namespace cryptonote MAINNET = 0, TESTNET, STAGENET, - FAKECHAIN + FAKECHAIN, + UNDEFINED = 255 }; } diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index adccd0469..e4a4cb2f1 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -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); |