mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 20:00:23 +02:00
fix crash in layout code when encountering wrong config
This commit is contained in:
parent
fef25d6a35
commit
ee3eaa5428
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue