mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-30 07:46:22 +00:00
do not return 'nullptr' as a string
This commit is contained in:
parent
3f4c6a5fa7
commit
7be8d6aa3e
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ string Imdn::createXml (const string &id, time_t time, Imdn::Type imdnType, Linp
|
||||||
char *datetime = nullptr;
|
char *datetime = nullptr;
|
||||||
|
|
||||||
// Check that the chat message has a message id.
|
// Check that the chat message has a message id.
|
||||||
if (id.empty()) return nullptr;
|
if (id.empty())
|
||||||
|
return content;
|
||||||
|
|
||||||
buf = xmlBufferCreate();
|
buf = xmlBufferCreate();
|
||||||
if (buf == nullptr) {
|
if (buf == nullptr) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue