From 9334cc280474ae55f67e058797e214d30251973a Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 25 Sep 2007 09:08:56 +0100 Subject: Fixed NULL pointer dereference in "account set" command. That command indeed does have a slightly confusing syntax. --- root_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index a7582936..baaf3354 100644 --- a/root_commands.c +++ b/root_commands.c @@ -382,7 +382,7 @@ static void cmd_account( irc_t *irc, char **cmd ) return; } - if( cmd[3] ) + if( cmd[3] && set_name ) { set_t *s = set_find( &a->set, set_name ); -- cgit v1.2.3