aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-07-16 17:30:41 -0400
committerMarcoFalke <falke.marco@gmail.com>2018-07-16 17:30:43 -0400
commit0568dcd67d34728042259dc8b987154d1970bb2c (patch)
tree8661a7355dd6f12248995d8316252c64df1de40b
parentf8d470e24606297dab95e30b1d39ff664fbda31d (diff)
parent347b4ff825e2e1202e8466ee9dcd90078cb1c861 (diff)
Merge #13679: Initialize m_next_send_inv_to_incoming
347b4ff825 Initialize m_next_send_inv_to_incoming (Pieter Wuille) Pull request description: This fixes an uninitialized variable introduced in #13298. Tree-SHA512: 0c6fb164164141036fbbc955475650724bffdb3593c22946f55ac715fa162183bf9377a8390ee9d13f104be22bc417445e2c7fb3d4acf5e6236ac802e50f3e77
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index d152fbfbdd..607b2fc53c 100644
--- a/src/net.h
+++ b/src/net.h
@@ -441,7 +441,7 @@ private:
* This takes the place of a feeler connection */
std::atomic_bool m_try_another_outbound_peer;
- std::atomic<int64_t> m_next_send_inv_to_incoming;
+ std::atomic<int64_t> m_next_send_inv_to_incoming{0};
friend struct CConnmanTest;
};