1
0
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:
Timo Sirainen 2001-05-11 19:53:56 +00:00 committed by cras
parent 8d6d0ee43e
commit 3bd6666aea

View File

@ -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;
}