diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-21 19:17:44 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2024-10-21 20:26:01 +0200 |
commit | e9320de63391bfca221ea7ae46a0b40bf9b992b0 (patch) | |
tree | de699585c95d781e4aef9c1e6850385ebe484391 /src/Erebos/ICE | |
parent | bc28be24d6f992618cd16e08c74bc58980591ea5 (diff) |
Allocate pjproject user data with calloc
Diffstat (limited to 'src/Erebos/ICE')
-rw-r--r-- | src/Erebos/ICE/pjproject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |