mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Convert null strings to empty strings to prevent crash in xmlrpc
This commit is contained in:
parent
8958eaa2b5
commit
1faa826dea
1 changed files with 1 additions and 1 deletions
|
|
@ -118,7 +118,7 @@ static void format_request(LinphoneXmlRpcRequest *request) {
|
|||
err = xmlTextWriterWriteElement(writer, (const xmlChar *)"int", (const xmlChar *)si);
|
||||
break;
|
||||
case LinphoneXmlRpcArgString:
|
||||
err = xmlTextWriterWriteElement(writer, (const xmlChar *)"string", (const xmlChar *)arg->data.s);
|
||||
err = xmlTextWriterWriteElement(writer, (const xmlChar *)"string", arg->data.s ? (const xmlChar *)arg->data.s : (const xmlChar *)"");
|
||||
break;
|
||||
}
|
||||
if (err >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue