diff options
author | Ailin Nemui <ailin@esf51.localdomain> | 2014-03-03 18:04:49 +0100 |
---|---|---|
committer | Ailin Nemui <ailin@esf51.localdomain> | 2014-06-11 12:09:18 +0200 |
commit | d4a7d6499435eb95e2f80a4bd158dc7e1de408f0 (patch) | |
tree | 54903d61a5d38e9e6d1e93a03234916b28910be0 /src/fe-common | |
parent | a6507f827ba968b0e02198fceb34711d0ff0ab5c (diff) | |
download | irssi-d4a7d6499435eb95e2f80a4bd158dc7e1de408f0.zip |
fix segfault with xmpp query in layout
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/windows-layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-common/core/windows-layout.c b/src/fe-common/core/windows-layout.c index e5fe6bf6..65741a73 100644 --- a/src/fe-common/core/windows-layout.c +++ b/src/fe-common/core/windows-layout.c @@ -70,7 +70,9 @@ static void sig_layout_restore_item(WINDOW_REC *window, const char *type, restore_win = window; protocol = chat_protocol_find(chat_type); - if (protocol->query_create != NULL) + if (protocol == NULL) + window_bind_add(window, tag, name); + else if (protocol->query_create != NULL) protocol->query_create(tag, name, TRUE); else { QUERY_REC *query; |