Skip to content

Commit

Permalink
Assert that queued checks are non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed May 15, 2019
1 parent d21e056 commit 3cc7205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/checkqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ class CCheckQueue
}
// execute work
for (T* check : vChecks) {
if (fOk)
assert(check);
if (fOk) {
fOk = (*check)();
}
delete check;
}
vChecks.clear();
Expand Down

0 comments on commit 3cc7205

Please sign in to comment.