Prevent some potential null-pointer deferences.

Spotted by our friend scan-build.
This commit is contained in:
LemonBoy 2017-02-14 13:38:59 +01:00
commit 98ead50b4e
3 changed files with 5 additions and 1 deletions

View file

@ -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 */