mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
fix detection of reallocarray
Fix detection of reallocarray (e.g. on glibc) raised since commit
0708a39b43
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
63d2102594
commit
85ca67b927
13 changed files with 35 additions and 20 deletions
|
|
@ -191,7 +191,7 @@ static int update_params(struct params *p, uint32_t n_params, const struct spa_p
|
|||
p->params = NULL;
|
||||
} else {
|
||||
struct spa_pod **np;
|
||||
np = reallocarray(p->params, p->n_params, sizeof(struct spa_pod *));
|
||||
np = pw_reallocarray(p->params, p->n_params, sizeof(struct spa_pod *));
|
||||
if (np == NULL) {
|
||||
pw_log_error("%p: can't realloc: %m", p);
|
||||
free(p->params);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue