mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -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
|
|
@ -476,7 +476,7 @@ do_update_port(struct node *this,
|
|||
port->params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(port->params, port->n_params, sizeof(struct spa_pod *));
|
||||
p = pw_reallocarray(port->params, port->n_params, sizeof(struct spa_pod *));
|
||||
if (p == NULL) {
|
||||
pw_log_error("%p: port %u can't realloc: %m", this, port_id);
|
||||
free(port->params);
|
||||
|
|
@ -1049,7 +1049,7 @@ client_node0_update(void *data,
|
|||
this->params = NULL;
|
||||
} else {
|
||||
void *p;
|
||||
p = reallocarray(this->params, this->n_params, sizeof(struct spa_pod *));
|
||||
p = pw_reallocarray(this->params, this->n_params, sizeof(struct spa_pod *));
|
||||
if (p == NULL) {
|
||||
pw_log_error("%p: can't realloc: %m", this);
|
||||
free(this->params);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue