mgcp_trunk: use talloc_zero_array instead of _talloc_zero_array

_talloc_zero_array is not supposed to be called by the API user. Lets
use talloc_zero_array instead.

Related: OS#2659
Change-Id: I27549585016a7998e9233c52f6d86429fc75f509
This commit is contained in:
Philipp Maier 2020-07-07 15:51:06 +02:00 committed by laforge
parent 06ea49159e
commit 7a755be4c2
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ int mgcp_trunk_alloc_endpts(struct mgcp_trunk *trunk)
OSMO_ASSERT(number_endpoints < 65534);
/* allocate pointer array for the endpoints */
trunk->endpoints = _talloc_zero_array(trunk->cfg,
sizeof(struct mgcp_endpoint *), number_endpoints, "endpoints");
trunk->endpoints = talloc_zero_array(trunk->cfg, struct mgcp_endpoint*,
number_endpoints);
if (!trunk->endpoints)
return -1;