From acd7959038aa74be7e4c05a206ba2882b15fd16b Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 19 Aug 2010 13:21:22 +0100 Subject: Forgot one NULL pointer check in the channel sensitivity code for the blist command. --- root_commands.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index 2cd1a617..5b761bb6 100644 --- a/root_commands.c +++ b/root_commands.c @@ -1007,7 +1007,8 @@ static void cmd_blist( irc_t *irc, char **cmd ) irc_usermsg( irc, format, "Nick", "Handle/Account", "Status" ); - if( strcmp( set_getstr( &irc->root->last_channel->set, "type" ), "control" ) != 0 ) + if( irc->root->last_channel && + strcmp( set_getstr( &irc->root->last_channel->set, "type" ), "control" ) != 0 ) irc->root->last_channel = NULL; for( l = irc->users; l; l = l->next ) -- cgit v1.2.3