diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-22 22:56:52 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-22 22:56:52 +0000 |
commit | 56f260affd91651cb0c44ee14713f7dfa0717ad4 (patch) | |
tree | bb7e091eb884d3bbfde98135e9032bcd69bae5b8 /root_commands.c | |
parent | d75597b0b31f8aa8ca523a3cfa4869e20fca8466 (diff) |
Some changes to get rid of compiler warnings. (And disabling strict
aliasing because there are too many warnings about it. :-P)
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/root_commands.c b/root_commands.c index e9c71f04..642f5374 100644 --- a/root_commands.c +++ b/root_commands.c @@ -744,7 +744,7 @@ static void cmd_yesno( irc_t *irc, char **cmd ) static void cmd_set( irc_t *irc, char **cmd ) { - char *set_name; + char *set_name = NULL; if( cmd[1] && cmd[2] ) { @@ -764,7 +764,7 @@ static void cmd_set( irc_t *irc, char **cmd ) set_name = cmd[1]; } } - if( cmd[1] ) /* else 'forgotten' on purpose.. Must show new value after changing */ + if( set_name ) /* else 'forgotten' on purpose.. Must show new value after changing */ { char *s = set_getstr( &irc->set, set_name ); if( s ) |