Skip to content
Permalink
Browse files

daemon: init public_port in all ctors

Coverity 196596
  • Loading branch information...
moneromooo-monero committed Mar 20, 2019
1 parent f2f725d commit 760d3a2a0c3e6778e3b1f2949b6b4eddebf963e5
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/daemon/daemon.cpp
@@ -115,6 +115,7 @@ t_daemon::t_daemon(t_daemon && other)
{
mp_internals = std::move(other.mp_internals);
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);
other.mp_internals.reset(nullptr);
public_rpc_port = other.public_rpc_port;
}
return *this;
}

0 comments on commit 760d3a2

Please sign in to comment.
You can’t perform that action at this time.