Merge branch 'd-minor' into 'master'

Prevent some potential null-pointer deferences.

See merge request !9
This commit is contained in:
Nei 2017-03-04 20:35:17 +00:00
commit 7ef22687f9
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 */