From 01d4c070e3fd24922bf9d42b8960d88ecb9039d7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 19 Dec 2000 17:27:23 +0000 Subject: Don't check queries whose address isn't known yet. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1013 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-irc-queries.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/fe-common/irc/fe-irc-queries.c') diff --git a/src/fe-common/irc/fe-irc-queries.c b/src/fe-common/irc/fe-irc-queries.c index 50236cf2..2cc81ecf 100644 --- a/src/fe-common/irc/fe-irc-queries.c +++ b/src/fe-common/irc/fe-irc-queries.c @@ -34,7 +34,8 @@ static QUERY_REC *query_find_address(SERVER_REC *server, const char *address) for (tmp = server->queries; tmp != NULL; tmp = tmp->next) { QUERY_REC *rec = tmp->data; - if (*rec->name != '=' && g_strcasecmp(address, rec->address) == 0) + if (*rec->name != '=' && rec->address != NULL && + g_strcasecmp(address, rec->address) == 0) return rec; } -- cgit v1.2.3