mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Do not dereference NULL window when resizing client, GitHub issue 2982.
This commit is contained in:
4
tty.c
4
tty.c
@ -937,7 +937,9 @@ tty_update_window_offset(struct window *w)
|
||||
struct client *c;
|
||||
|
||||
TAILQ_FOREACH(c, &clients, entry) {
|
||||
if (c->session != NULL && c->session->curw->window == w)
|
||||
if (c->session != NULL &&
|
||||
c->session->curw != NULL &&
|
||||
c->session->curw->window == w)
|
||||
tty_update_client_offset(c);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user