do not return 'nullptr' as a string

This commit is contained in:
Benjamin Reis 2018-02-14 14:12:22 +01:00
parent 3f4c6a5fa7
commit 7be8d6aa3e

View file

@ -40,7 +40,8 @@ string Imdn::createXml (const string &id, time_t time, Imdn::Type imdnType, Linp
char *datetime = nullptr;
// Check that the chat message has a message id.
if (id.empty()) return nullptr;
if (id.empty())
return content;
buf = xmlBufferCreate();
if (buf == nullptr) {