From 7be8d6aa3e86aae17a0e14c433441a7ea942df86 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 14 Feb 2018 14:12:22 +0100 Subject: [PATCH] do not return 'nullptr' as a string --- src/chat/notification/imdn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat/notification/imdn.cpp b/src/chat/notification/imdn.cpp index b3412ce12..eceda4c11 100644 --- a/src/chat/notification/imdn.cpp +++ b/src/chat/notification/imdn.cpp @@ -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) {