From f462571dfd8fdfc68f4e0d404a402b95670813f0 Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Tue, 18 Jun 2019 12:18:02 -0700 Subject: [PATCH] Seg fault fix --- src/workers/Hashrate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/Hashrate.cpp b/src/workers/Hashrate.cpp index d0b1a075..48836a93 100644 --- a/src/workers/Hashrate.cpp +++ b/src/workers/Hashrate.cpp @@ -50,7 +50,7 @@ inline static const char *format(double h, char *buf, size_t size) Hashrate::Hashrate(size_t threads, xmrig::Controller *controller) : m_highest(0.0), - m_threads(threads), + m_threads(0), m_timer(nullptr) { set_threads(threads);