diff --git a/src/checkqueue.h b/src/checkqueue.h index 68c4d78407..86bffd30ac 100644 --- a/src/checkqueue.h +++ b/src/checkqueue.h @@ -113,8 +113,10 @@ class CCheckQueue } // execute work for (T* check : vChecks) { - if (fOk) + assert(check); + if (fOk) { fOk = (*check)(); + } delete check; } vChecks.clear();