mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
|
|
@ -120,7 +120,7 @@ static jack_property_t *add_property(jack_description_t *desc, const char *key,
|
|||
|
||||
if (desc->property_cnt == desc->property_size) {
|
||||
ns = desc->property_size > 0 ? desc->property_size * 2 : 8;
|
||||
np = reallocarray(desc->properties, ns, sizeof(*prop));
|
||||
np = pw_reallocarray(desc->properties, ns, sizeof(*prop));
|
||||
if (np == NULL)
|
||||
return NULL;
|
||||
desc->property_size = ns;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue