summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/log.c b/src/core/log.c
index e843ffe7..9a131f96 100644
--- a/src/core/log.c
+++ b/src/core/log.c
@@ -290,7 +290,7 @@ void log_file_write(const char *server_tag, const char *item, int level,
if (!found && !no_fallbacks && fallbacks != NULL) {
/* not found from any items, so write it to all main logs */
- tmpstr = (level & MSGLEVEL_PUBLIC) ?
+ tmpstr = (level & MSGLEVEL_PUBLIC) && item != NULL ?
g_strconcat(item, ": ", str, NULL) :
g_strdup(str);