diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-12 14:06:36 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-02-12 14:06:36 +0000 |
commit | 8ec2a8d2b0fc43e18abcddde788a0248c03d8050 (patch) | |
tree | 9aba18bd55609b1a66be176bf450125fb52d4976 /src | |
parent | Merge pull request #1698 (diff) | |
download | monero-8ec2a8d2b0fc43e18abcddde788a0248c03d8050.tar.xz |
net_node: fix spurious warning about using uninitialized data
This is only used to load, not save
Diffstat (limited to 'src')
-rw-r--r-- | src/p2p/net_node.h | 2 |
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; } } |