1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05: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:
ailin-nemui 2016-06-25 16:06:50 +02:00
parent f264a78947
commit c2c32e3955

View File

@ -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");