summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-02-17 14:41:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-02-17 14:41:38 +0000
commitc02ac34c6580fae4375032c9de6abd152d2bd756 (patch)
treea504600a9182aaad6157690a3237ac456704bea8 /src/core
parent74b1a575404b1cf2a8eafb782b856694ec48f291 (diff)
downloadirssi-c02ac34c6580fae4375032c9de6abd152d2bd756.zip
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
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);