diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-06-25 16:06:50 +0200 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2016-06-25 21:33:50 +0200 |
commit | c2c32e39559e4081ea2ebfecbfc67d9553a9ad12 (patch) | |
tree | 0f68c0fb450e3e42e5eb0bf63b558179b78b2d57 /src/fe-text/statusbar-items.c | |
parent | f264a789478757da0d27507c7c85a37f450c83c0 (diff) | |
download | irssi-c2c32e39559e4081ea2ebfecbfc67d9553a9ad12.zip |
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
Diffstat (limited to 'src/fe-text/statusbar-items.c')
-rw-r--r-- | src/fe-text/statusbar-items.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index e3e0c2a6..0db4f63a 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -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"); |