diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-18 00:11:23 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-18 00:11:23 +0000 |
commit | b0178d72487ee4d5838b53f489d155154a0a7f64 (patch) | |
tree | 87233ea0dbbfc651f2ced63925e58eebea976b23 /src | |
parent | 0d4d9204a96b017981d0a8c1ea8af753741dfbec (diff) | |
download | irssi-b0178d72487ee4d5838b53f489d155154a0a7f64.zip |
crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1239 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/core/log.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/log.c b/src/core/log.c index 9d5b8592..368de25f 100644 --- a/src/core/log.c +++ b/src/core/log.c @@ -247,7 +247,7 @@ void log_file_write(SERVER_REC *server, const char *item, int level, const char *str, int no_fallbacks) { GSList *tmp, *fallbacks; - char *tmpstr; + char *tmpstr, *servertag; int found; g_return_if_fail(str != NULL); @@ -255,6 +255,7 @@ void log_file_write(SERVER_REC *server, const char *item, int level, if (logs == NULL) return; + servertag = server == NULL ? NULL : server->tag; fallbacks = NULL; found = FALSE; for (tmp = logs; tmp != NULL; tmp = tmp->next) { @@ -270,7 +271,7 @@ void log_file_write(SERVER_REC *server, const char *item, int level, fallbacks = g_slist_append(fallbacks, rec); else if (item != NULL && log_item_find(rec, LOG_ITEM_TARGET, item, - server->tag) != NULL) + servertag) != NULL) log_write_rec(rec, str, level); } |