mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Fix segfault in query_remove_all
It is possible for rec to be NULL in query_remove_all, resulting in a segfault. So return without doing anything if rec is NULL.
This commit is contained in:
parent
49ace3251b
commit
2edd816e7d
@ -119,6 +119,7 @@ static void query_remove_all(IRC_CHANNEL_REC *channel)
|
||||
int n;
|
||||
|
||||
rec = channel->server->chanqueries;
|
||||
if (rec == NULL) return;
|
||||
|
||||
/* remove channel from query lists */
|
||||
for (n = 0; n < CHANNEL_QUERIES; n++)
|
||||
|
Loading…
Reference in New Issue
Block a user