diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2009-06-24 22:44:39 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2009-06-24 22:44:39 +0100 |
commit | 8a08d92a092092b5d208616e03fb3fcee1fc3c86 (patch) | |
tree | 52bd4cbc7a5c8414a68b108cd9c28c832a2e772d | |
parent | b9369b55c99246a8feaee0ad24367044d92fa55d (diff) |
Fixed crash on setting an unknown setting.
-rw-r--r-- | root_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |