mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-22 10:45:06 +00:00
#1309 Fixed null pointer dereference.
This commit is contained in:
parent
6e7b440630
commit
921abd4623
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ void xmrig::Workers<T>::onReady(void *arg)
|
|||
assert(worker != nullptr);
|
||||
|
||||
if (!worker || !worker->selfTest()) {
|
||||
LOG_ERR("%s " RED("thread ") RED_BOLD("#%zu") RED(" self-test failed"), T::tag(), worker->id());
|
||||
LOG_ERR("%s " RED("thread ") RED_BOLD("#%zu") RED(" self-test failed"), T::tag(), worker ? worker->id() : 0);
|
||||
|
||||
handle->backend()->start(worker, false);
|
||||
delete worker;
|
||||
|
|
Loading…
Reference in a new issue