fix build with GCC 8.1.0

This commit is contained in:
moneromooo-monero 2018-05-24 09:12:16 +01:00
parent f794d3b3df
commit a87980f6c2
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 4 additions and 2 deletions

View file

@ -973,7 +973,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);