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:
parent
f264a78947
commit
c2c32e3955
@ -289,6 +289,10 @@ static void sig_statusbar_more_updated(void)
|
|||||||
{
|
{
|
||||||
int visible;
|
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;
|
visible = g_slist_find(more_visible, WINDOW_MAIN(active_win)) != NULL;
|
||||||
if (WINDOW_GUI(active_win)->view->more_text != visible)
|
if (WINDOW_GUI(active_win)->view->more_text != visible)
|
||||||
statusbar_items_redraw("more");
|
statusbar_items_redraw("more");
|
||||||
|
Loading…
Reference in New Issue
Block a user