use ms_new0

This commit is contained in:
Simon Morlat 2014-11-22 11:31:06 +01:00
parent c88838b0b5
commit 1191a49efa
4 changed files with 6 additions and 6 deletions

View file

@ -1529,7 +1529,7 @@ static void linphone_core_init(LinphoneCore * lc, const LinphoneCoreVTable *vtab
const char *aac_fmtp162248, *aac_fmtp3244;
LinphoneCoreVTable* local_vtable= linphone_core_v_table_new();
ms_message("Initializing LinphoneCore %s", linphone_core_get_version());
memset (lc, 0, sizeof (LinphoneCore));
lc->config=lp_config_ref(config);
lc->data=userdata;
lc->ringstream_autorelease=TRUE;
@ -1679,7 +1679,7 @@ LinphoneCore *linphone_core_new(const LinphoneCoreVTable *vtable,
LinphoneCore *linphone_core_new_with_config(const LinphoneCoreVTable *vtable, struct _LpConfig *config, void *userdata)
{
LinphoneCore *core = ms_new(LinphoneCore, 1);
LinphoneCore *core = ms_new0(LinphoneCore, 1);
linphone_core_init(core, vtable, config, userdata);
return core;
}
@ -6640,7 +6640,7 @@ typedef struct Hook{
}Hook;
static Hook *hook_new(LinphoneCoreIterateHook hook, void *hook_data){
Hook *h=ms_new(Hook,1);
Hook *h=ms_new0(Hook,1);
h->fun=hook;
h->data=hook_data;
return h;

View file

@ -145,7 +145,7 @@ char * linphone_upnp_format_device_id(const char *device_id) {
if(device_id == NULL) {
return ret;
}
ret = ms_new(char, UPNP_UUID_LEN + 1);
ret = ms_new0(char, UPNP_UUID_LEN + 1);
tmp = ret;
if(linphone_upnp_strncmpi(device_id, "uuid:", linphone_upnp_str_min(device_id, "uuid:")) == 0) {
device_id += strlen("uuid:");

@ -1 +1 @@
Subproject commit 26ff7a2098d0140083e23682752e66cf53f8e203
Subproject commit dfc2fbd36db97f07f08112ee8217477ba4257744

2
oRTP

@ -1 +1 @@
Subproject commit 5333d998c8eaf3c43e66c4a5335c0606c8dea3df
Subproject commit 7508c59d703b769d510321ff357d10139d476bab