Skip to content

Commit 3cc7205

Browse files
committed
Assert that queued checks are non-null
1 parent d21e056 commit 3cc7205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/checkqueue.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ class CCheckQueue
113113
}
114114
// execute work
115115
for (T* check : vChecks) {
116-
if (fOk)
116+
assert(check);
117+
if (fOk) {
117118
fOk = (*check)();
119+
}
118120
delete check;
119121
}
120122
vChecks.clear();

0 commit comments

Comments
 (0)