mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
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
This commit is contained in:
parent
4957c7b98b
commit
01d4c070e3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user