From 82513935b894032ecf92f59c7f53cd48c328cfe8 Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Sat, 24 Aug 2019 22:26:37 +0200 Subject: [PATCH] fix used `empty()` instead of `clear()` solve first part of #2541 --- xmrstak/misc/executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp index 455ba9119..3f930dc82 100644 --- a/xmrstak/misc/executor.cpp +++ b/xmrstak/misc/executor.cpp @@ -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"); @@ -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)