Ehooks: Assert alloc isn't NULL

This commit is contained in:
David Goldblatt 2019-12-19 17:15:57 -08:00 committed by David Goldblatt
parent e210ccc57e
commit f2f2084e79

View File

@ -6,6 +6,8 @@
void
ehooks_init(ehooks_t *ehooks, extent_hooks_t *extent_hooks, unsigned ind) {
/* All other hooks are optional; this one is not. */
assert(extent_hooks->alloc != NULL);
ehooks->ind = ind;
ehooks_set_extent_hooks_ptr(ehooks, extent_hooks);
}