aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-14 09:21:09 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-14 09:26:12 +0000
commite1b097b99ba5005b9c3a0ec5a4499e3041eb8f7e (patch)
tree709671b5658a207329624e1f65e147d278c28f8c /src
parentMerge pull request #5423 (diff)
downloadmonero-e1b097b99ba5005b9c3a0ec5a4499e3041eb8f7e.tar.xz
core_rpc_server: remove dummy assigning int to bool
Coverity 197653
Diffstat (limited to 'src')
-rw-r--r--src/rpc/core_rpc_server.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 71bfcc950..891b36499 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -1393,11 +1393,9 @@ namespace cryptonote
submit_req.push_back(boost::value_initialized<std::string>());
res.height = m_core.get_blockchain_storage().get_current_blockchain_height();
- bool r = CORE_RPC_STATUS_OK;
-
for(size_t i = 0; i < req.amount_of_blocks; i++)
{
- r = on_getblocktemplate(template_req, template_res, error_resp, ctx);
+ bool r = on_getblocktemplate(template_req, template_res, error_resp, ctx);
res.status = template_res.status;
template_req.prev_block.clear();