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
|
|
@ -318,7 +318,7 @@ static int add_node_update(struct node_data *data, uint32_t change_mask, uint32_
|
|||
id, &idx, NULL, ¶m, &b.b);
|
||||
if (res == 1) {
|
||||
void *p;
|
||||
p = reallocarray(params, n_params + 1, sizeof(struct spa_pod *));
|
||||
p = pw_reallocarray(params, n_params + 1, sizeof(struct spa_pod *));
|
||||
if (p == NULL) {
|
||||
res = -errno;
|
||||
pw_log_error("realloc failed: %m");
|
||||
|
|
@ -384,7 +384,7 @@ static int add_port_update(struct node_data *data, struct pw_impl_port *port, ui
|
|||
id, &idx, NULL, ¶m, &b.b);
|
||||
if (res == 1) {
|
||||
void *p;
|
||||
p = reallocarray(params, n_params + 1, sizeof(struct spa_pod*));
|
||||
p = pw_reallocarray(params, n_params + 1, sizeof(struct spa_pod*));
|
||||
if (p == NULL) {
|
||||
res = -errno;
|
||||
pw_log_error("realloc failed: %m");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue