summaryrefslogtreecommitdiff
path: root/src/core/stdmsg/src/msglog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdmsg/src/msglog.cpp')
-rw-r--r--src/core/stdmsg/src/msglog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp
index 778ae5f991..318e246ae3 100644
--- a/src/core/stdmsg/src/msglog.cpp
+++ b/src/core/stdmsg/src/msglog.cpp
@@ -332,7 +332,7 @@ static bool CreateRTFFromDbEvent(LogStreamData *dat)
buf.Append(": ");
AppendToBufferWithRTF(buf, blob.getName());
- if (*blob.getDescr() != 0) {
+ if (mir_wstrlen(blob.getDescr())) {
buf.Append(" (");
AppendToBufferWithRTF(buf, blob.getDescr());
buf.Append(")");