Add some NULL checks, GitHub issue 4586.

This commit is contained in:
nicm
2025-08-14 06:49:53 +00:00
parent 84775130a0
commit 0646814235
2 changed files with 4 additions and 1 deletions

View File

@ -72,7 +72,8 @@ server_set_marked(struct session *s, struct winlink *wl, struct window_pane *wp)
cmd_find_clear_state(&marked_pane, 0);
marked_pane.s = s;
marked_pane.wl = wl;
marked_pane.w = wl->window;
if (wl != NULL)
marked_pane.w = wl->window;
marked_pane.wp = wp;
}