aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-12 14:06:36 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-02-12 14:06:36 +0000
commit8ec2a8d2b0fc43e18abcddde788a0248c03d8050 (patch)
tree9aba18bd55609b1a66be176bf450125fb52d4976
parentMerge pull request #1698 (diff)
downloadmonero-8ec2a8d2b0fc43e18abcddde788a0248c03d8050.tar.xz
net_node: fix spurious warning about using uninitialized data
This is only used to load, not save
-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;
}
}