daemon: init public_port in all ctors

Coverity 196596
pull/5325/head
moneromooo-monero 5 years ago
parent f2f725d8db
commit 760d3a2a0c
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -115,6 +115,7 @@ t_daemon::t_daemon(t_daemon && other)
{ {
mp_internals = std::move(other.mp_internals); mp_internals = std::move(other.mp_internals);
other.mp_internals.reset(nullptr); other.mp_internals.reset(nullptr);
public_rpc_port = other.public_rpc_port;
} }
} }
@ -125,6 +126,7 @@ t_daemon & t_daemon::operator=(t_daemon && other)
{ {
mp_internals = std::move(other.mp_internals); mp_internals = std::move(other.mp_internals);
other.mp_internals.reset(nullptr); other.mp_internals.reset(nullptr);
public_rpc_port = other.public_rpc_port;
} }
return *this; return *this;
} }

Loading…
Cancel
Save