From e9320de63391bfca221ea7ae46a0b40bf9b992b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 21 Oct 2024 19:17:44 +0200 Subject: Allocate pjproject user data with calloc --- src/Erebos/ICE/pjproject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Erebos/ICE/pjproject.c b/src/Erebos/ICE/pjproject.c index 084795f..d3037bf 100644 --- a/src/Erebos/ICE/pjproject.c +++ b/src/Erebos/ICE/pjproject.c @@ -172,7 +172,7 @@ pj_ice_strans * ice_create(pj_ice_sess_role role, HsStablePtr sptr, HsStablePtr pj_ice_strans * res; - struct user_data * udata = malloc(sizeof(struct user_data)); + struct user_data * udata = calloc( 1, sizeof( struct user_data )); udata->role = role; udata->sptr = sptr; udata->cb_init = cb; -- cgit v1.2.3