#1309 Fixed null pointer dereference.

This commit is contained in:
XMRig 2019-11-24 00:53:58 +07:00
parent 6e7b440630
commit 921abd4623
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -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;