mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
Prevent some potential null-pointer deferences.
Spotted by our friend scan-build.
This commit is contained in:
parent
228f487a69
commit
98ead50b4e
3 changed files with 5 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue