aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-02-12 23:27:08 +0200
committerRiccardo Spagni <ric@spagni.net>2017-02-12 23:27:08 +0200
commitf4e2539a322c584c9b45ad5a000cb63e9e90aaab (patch)
tree807e7d0198255da4ed741fc7ea1194bb120659ff /src
parentMerge pull request #1714 (diff)
parentnet_node: fix spurious warning about using uninitialized data (diff)
downloadmonero-f4e2539a322c584c9b45ad5a000cb63e9e90aaab.tar.xz
Merge pull request #1715
8ec2a8d2 net_node: fix spurious warning about using uninitialized data (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/p2p/net_node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h
index 5ed96c00b..4243e35f1 100644
--- a/src/p2p/net_node.h
+++ b/src/p2p/net_node.h
@@ -112,7 +112,7 @@ namespace nodetool
if (ver == 0)
{
// from v1, we do not store the peer id anymore
- peerid_type peer_id;
+ peerid_type peer_id = AUTO_VAL_INIT (peer_id);
a & peer_id;
}
}