summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-10-22 15:38:53 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-10-22 15:38:53 +0000
commit9b459cfe46fc59a684cc5a6e9dc26f1ca14fe5c1 (patch)
tree831ee70229a0262ac55310b6cf0874817595cabe /src/fe-common
parentc78f0d12c88a307932617ed09e37aa6258767897 (diff)
downloadirssi-9b459cfe46fc59a684cc5a6e9dc26f1ca14fe5c1.zip
Fixed glib warning with autologging and queries.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@781 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-log.c b/src/fe-common/core/fe-log.c
index 0efb1ff6..edba03b3 100644
--- a/src/fe-common/core/fe-log.c
+++ b/src/fe-common/core/fe-log.c
@@ -408,6 +408,9 @@ static int sig_autoremove(void)
/* Close only logs with private messages */
logitem = log->items->data;
+ if (logitem->servertag == NULL)
+ continue;
+
server = server_find_tag(logitem->servertag);
if (logitem->type == LOG_ITEM_TARGET &&
server != NULL && !server->ischannel(*logitem->name))