Skip to content

Commit

Permalink
Merge pull request #2521 from psychocrypt/fix-usedEmtyINsteadOfClear
Browse files Browse the repository at this point in the history
fix used `empty()` instead of `clear()`
  • Loading branch information
fireice-uk authored Aug 26, 2019
2 parents bb189ad + 8251393 commit 8fe6928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xmrstak/misc/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ void executor::hashrate_report(std::string& out)
std::string motd;
for(jpsock& pool : pools)
{
motd.empty();
motd.clear();
if(pool.get_pool_motd(motd) && motd_filter_console(motd))
{
out.append("Message from ").append(pool.get_pool_addr()).append(":\n");
Expand Down Expand Up @@ -1040,7 +1040,7 @@ void executor::http_hashrate_report(std::string& out)
std::string motd;
for(jpsock& pool : pools)
{
motd.empty();
motd.clear();
if(pool.get_pool_motd(motd) && motd_filter_web(motd))
{
if(!have_motd)
Expand Down

0 comments on commit 8fe6928

Please sign in to comment.