fix crash in layout code when encountering wrong config

This commit is contained in:
Ailin Nemui 2015-01-07 04:12:55 +01:00 committed by Ailin Nemui
commit ee3eaa5428
2 changed files with 2 additions and 0 deletions

View file

@ -179,6 +179,7 @@ static void sig_layout_restore(void)
lower_window = NULL; lower_size = 0;
for (i = 0, tmp = sorted_config; i < windows_count; tmp = tmp->next, i++) {
CONFIG_NODE *node = tmp->data;
if (node->key == NULL) continue;
/* create a new window + mainwindow */
signal_emit("gui window create override", 1,