From 8a08d92a092092b5d208616e03fb3fcee1fc3c86 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 24 Jun 2009 22:44:39 +0100 Subject: Fixed crash on setting an unknown setting. --- 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 d90531eb..b3a7109e 100644 --- a/root_commands.c +++ b/root_commands.c @@ -308,7 +308,7 @@ static int cmd_set_real( irc_t *irc, char **cmd, cmd_set_findhead findhead, cmd_ set_t *s = set_find( head, set_name ); int st; - if( checkflags && checkflags( irc, s ) == 0 ) + if( s && checkflags && checkflags( irc, s ) == 0 ) return 0; if( g_strncasecmp( cmd[1], "-del", 4 ) == 0 ) -- cgit v1.2.3