mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Don't crash if config file had keyboard = { .. } in it
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1491 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8d6d0ee43e
commit
3bd6666aea
@ -750,10 +750,8 @@ static void read_keyboard_config(void)
|
||||
}
|
||||
|
||||
/* FIXME: backward "compatibility" - remove after irssi .99 */
|
||||
tmp = node->value;
|
||||
if (tmp != NULL &&
|
||||
config_node_get_str(tmp->data, "key", NULL) == NULL) {
|
||||
iconfig_node_clear(node);
|
||||
if (node->type != NODE_TYPE_LIST) {
|
||||
iconfig_node_remove(NULL, node);
|
||||
key_configure_thaw();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user