diff options
Diffstat (limited to 'src/fe-common/irc/fe-irc-queries.c')
-rw-r--r-- | src/fe-common/irc/fe-irc-queries.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |