Skip to content

Commit 4bc93ef

Browse files
committed
addrman: init node_id for sanitizers
1 parent 044d60a commit 4bc93ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addrman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ std::pair<CAddress, NodeSeconds> AddrManImpl::Select_(bool new_only, std::option
750750

751751
// Iterate over the positions of that bucket, starting at the initial one,
752752
// and looping around.
753-
int i, position, node_id;
753+
int i, position, node_id = 0;
754754
for (i = 0; i < ADDRMAN_BUCKET_SIZE; ++i) {
755755
position = (initial_position + i) % ADDRMAN_BUCKET_SIZE;
756756
node_id = GetEntry(search_tried, bucket, position);

0 commit comments

Comments
 (0)