updates.
[runtime.git] / apps / irssi / src / core / log.c
index e843ffe732ed58f40eed8a64116f7c296e8c62cb..9a131f9680d5f573e13132a668e7f8f0233fe227 100644 (file)
@@ -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);