From c02ac34c6580fae4375032c9de6abd152d2bd756 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 17 Feb 2002 14:41:38 +0000 Subject: Log writing sometimes might have produced some glib errors. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2499 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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); -- cgit v1.2.3