net_node: fix spurious warning about using uninitialized data

This is only used to load, not save
This commit is contained in:
moneromooo-monero 2017-02-12 14:06:36 +00:00
parent cb54eeaa31
commit 8ec2a8d2b0
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -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;
}
}