forked from mirrors/linphone-iphone
Fix other bb10 crashes with NULL %s
This commit is contained in:
parent
572c57a221
commit
7a2cc53991
2 changed files with 4 additions and 4 deletions
|
|
@ -275,7 +275,7 @@ const LinphoneAuthInfo *_linphone_core_find_auth_info(LinphoneCore *lc, const ch
|
|||
if (ai==NULL){
|
||||
ai=find_auth_info(lc,username,NULL,NULL, ignore_realm);
|
||||
}
|
||||
if (ai) ms_message("linphone_core_find_auth_info(): returning auth info username=%s, realm=%s", ai->username, ai->realm);
|
||||
if (ai) ms_message("linphone_core_find_auth_info(): returning auth info username=%s, realm=%s", ai->username ? ai->username : "", ai->realm ? ai->realm : "");
|
||||
return ai;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -496,13 +496,13 @@ void linphone_reporting_update_media_info(LinphoneCall * call, int stats_type) {
|
|||
// RFC states: "LocalGroupID provides the identification for the purposes
|
||||
// of aggregation for the local endpoint.".
|
||||
STR_REASSIGN(report->info.local_addr.group, ms_strdup_printf("%s-%s-%s"
|
||||
, dialog_id
|
||||
, dialog_id ? dialog_id : ""
|
||||
, "local"
|
||||
, report->local_metrics.user_agent ? report->local_metrics.user_agent : ""
|
||||
)
|
||||
);
|
||||
STR_REASSIGN(report->info.remote_addr.group, ms_strdup_printf("%s-%s-%s"
|
||||
, dialog_id
|
||||
, dialog_id ? dialog_id : ""
|
||||
, "remote"
|
||||
, report->remote_metrics.user_agent ? report->remote_metrics.user_agent : ""
|
||||
)
|
||||
|
|
@ -553,7 +553,7 @@ void linphone_reporting_update_media_info(LinphoneCall * call, int stats_type) {
|
|||
}
|
||||
}
|
||||
|
||||
STR_REASSIGN(report->dialog_id, ms_strdup_printf("%s;%u", dialog_id, report->info.local_addr.ssrc));
|
||||
STR_REASSIGN(report->dialog_id, ms_strdup_printf("%s;%u", dialog_id ? dialog_id : "", report->info.local_addr.ssrc));
|
||||
|
||||
if (local_payload != NULL) {
|
||||
report->local_metrics.session_description.payload_type = local_payload->type;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue