Skip to content

Commit

Permalink
Merge bitcoin#13679: Initialize m_next_send_inv_to_incoming
Browse files Browse the repository at this point in the history
347b4ff Initialize m_next_send_inv_to_incoming (Pieter Wuille)

Pull request description:

  This fixes an uninitialized variable introduced in bitcoin#13298.

Tree-SHA512: 0c6fb164164141036fbbc955475650724bffdb3593c22946f55ac715fa162183bf9377a8390ee9d13f104be22bc417445e2c7fb3d4acf5e6236ac802e50f3e77
  • Loading branch information
MarcoFalke authored and PastaPastaPasta committed Jul 24, 2020
1 parent 6c442b4 commit b355106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.h
Expand Up @@ -642,7 +642,7 @@ friend class CNode;
* 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;
};
Expand Down

0 comments on commit b355106

Please sign in to comment.