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-common/core/windows-layout.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fe-common') diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c index d0606bc9..8ebcc12d 100644 --- a/src/fe-common/core/windows-layout.c +++ b/src/fe-common/core/windows-layout.c @@ -127,6 +127,7 @@ static void sig_layout_restore(void) for (; tmp != NULL; tmp = config_node_next(tmp)) { CONFIG_NODE *node = tmp->data; + if (node->key == NULL) continue; window = window_find_refnum(atoi(node->key)); if (window == NULL) window = window_create(NULL, TRUE); -- cgit v1.2.3