brick: thighten callback checking

This commit is contained in:
Thomas Schoebel-Theuer 2022-05-28 09:58:46 +02:00
parent 55f9e16365
commit 89f1fb5795
1 changed files with 1 additions and 0 deletions

View File

@ -235,6 +235,7 @@ struct callback_object {
CHECK_PTR(obj, done); \
__cb = (obj)->object_cb; \
CHECK_PTR_NULL(__cb, done); \
CHECK_PTR_NULL(__cb->cb_fn, done); \
__cb->cb_error = (err); \
__cb->cb_fn(__cb); \
}