Ehooks: Assert alloc isn't NULL
This commit is contained in:
parent
e210ccc57e
commit
f2f2084e79
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
void
|
void
|
||||||
ehooks_init(ehooks_t *ehooks, extent_hooks_t *extent_hooks, unsigned ind) {
|
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->ind = ind;
|
||||||
ehooks_set_extent_hooks_ptr(ehooks, extent_hooks);
|
ehooks_set_extent_hooks_ptr(ehooks, extent_hooks);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user