aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-09-25 09:08:56 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2007-09-25 09:08:56 +0100
commit9334cc280474ae55f67e058797e214d30251973a (patch)
tree66a3edee7e38ccee91f977ff4f72fefc2f229552 /root_commands.c
parent8d32b9e8328605bb52c87b53f1f27028e68336e5 (diff)
Fixed NULL pointer dereference in "account set" command. That command
indeed does have a slightly confusing syntax.
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c2
1 files changed, 1 insertions, 1 deletions
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 );