From ee3eaa5428c7a574ad3d34602230f3168f204414 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Wed, 7 Jan 2015 04:12:55 +0100 Subject: fix crash in layout code when encountering wrong config --- src/fe-text/mainwindows-layout.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fe-text/mainwindows-layout.c') diff --git a/src/fe-text/mainwindows-layout.c b/src/fe-text/mainwindows-layout.c index c53f8f72..020969e6 100644 --- a/src/fe-text/mainwindows-layout.c +++ b/src/fe-text/mainwindows-layout.c @@ -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, -- cgit v1.2.3