mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
compat: add fallback implementation for reallocarray(3)
This commit is contained in:
@ -293,7 +293,9 @@ sysprof_capture_cursor_add_condition (SysprofCaptureCursor *self,
|
||||
*
|
||||
* FIXME: There’s currently no error reporting from this function, so ENOMEM
|
||||
* results in an abort. */
|
||||
self->conditions = reallocarray (self->conditions, ++self->n_conditions, sizeof (*self->conditions));
|
||||
self->conditions = _sysprof_reallocarray (self->conditions,
|
||||
++self->n_conditions,
|
||||
sizeof (*self->conditions));
|
||||
assert (self->conditions != NULL);
|
||||
|
||||
self->conditions[self->n_conditions - 1] = sysprof_steal_pointer (&condition);
|
||||
|
||||
Reference in New Issue
Block a user