mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 03:40:16 +02:00
check for NULL in statusbar_more_updated
fixes crash due to invalid access of active_win members when the more indicator is triggered without an active window
This commit is contained in:
parent
f264a78947
commit
c2c32e3955
1 changed files with 4 additions and 0 deletions
|
|
@ -289,6 +289,10 @@ static void sig_statusbar_more_updated(void)
|
|||
{
|
||||
int visible;
|
||||
|
||||
/* no active window, for example during /window hide */
|
||||
if (active_win == NULL)
|
||||
return;
|
||||
|
||||
visible = g_slist_find(more_visible, WINDOW_MAIN(active_win)) != NULL;
|
||||
if (WINDOW_GUI(active_win)->view->more_text != visible)
|
||||
statusbar_items_redraw("more");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue