summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/mainwindows-layout.c')
-rw-r--r--src/fe-text/mainwindows-layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-text/mainwindows-layout.c b/src/fe-text/mainwindows-layout.c
index 020969e6..fae02539 100644
--- a/src/fe-text/mainwindows-layout.c
+++ b/src/fe-text/mainwindows-layout.c
@@ -121,6 +121,8 @@ static void sig_layout_restore(void)
if (node == NULL) return;
sorted_config = get_sorted_windows_config(node);
+ if (sorted_config == NULL) return;
+
windows_count = g_slist_length(sorted_config);
/* calculate the saved terminal height */