aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/rpc_command_executor.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-06-19 12:51:13 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-06-19 12:51:13 -0500
commit9a3bd88b9f65f4245b6b20ef0c33b75c39779b80 (patch)
tree9a7859d7d2c611058eeddfe385cf15ab74e804fc /src/daemon/rpc_command_executor.cpp
parentMerge pull request #3844 (diff)
parentfix build with GCC 8.1.0 (diff)
downloadmonero-9a3bd88b9f65f4245b6b20ef0c33b75c39779b80.tar.xz
Merge pull request #3851
a87980f fix build with GCC 8.1.0 (moneromooo-monero)
Diffstat (limited to 'src/daemon/rpc_command_executor.cpp')
-rw-r--r--src/daemon/rpc_command_executor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp
index 8735f5463..956c84a01 100644
--- a/src/daemon/rpc_command_executor.cpp
+++ b/src/daemon/rpc_command_executor.cpp
@@ -976,7 +976,7 @@ bool t_rpc_command_executor::print_transaction_pool_stats() {
}
else
{
- memset(&res.pool_stats, 0, sizeof(res.pool_stats));
+ res.pool_stats = {};
if (!m_rpc_server->on_get_transaction_pool_stats(req, res, false) || res.status != CORE_RPC_STATUS_OK)
{
tools::fail_msg_writer() << make_error(fail_message, res.status);