aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-20 23:45:00 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-20 23:45:00 +0000
commit760d3a2a0c3e6778e3b1f2949b6b4eddebf963e5 (patch)
tree22b5ca0522247d3cfaaa483e991548939bd7cc9d /src
parentMerge pull request #5201 (diff)
downloadmonero-760d3a2a0c3e6778e3b1f2949b6b4eddebf963e5.tar.xz
daemon: init public_port in all ctors
Coverity 196596
Diffstat (limited to 'src')
-rw-r--r--src/daemon/daemon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/daemon/daemon.cpp b/src/daemon/daemon.cpp
index 3d1d893ea..531c080de 100644
--- a/src/daemon/daemon.cpp
+++ b/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;
}