From 3cc720592a60d421c2ab42ca41928c2e18562a4c Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Wed, 15 May 2019 13:53:34 -0400 Subject: [PATCH] Assert that queued checks are non-null --- src/checkqueue.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();