Skip to content

Commit

Permalink
fix used empty() instead of clear()
Browse files Browse the repository at this point in the history
solve first part of #2541
  • Loading branch information
psychocrypt committed Aug 24, 2019
1 parent bb189ad commit 8251393
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 8251393

Please sign in to comment.