Commit 7be8d6aa authored by Benjamin REIS's avatar Benjamin REIS

do not return 'nullptr' as a string

parent 3f4c6a5f
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment