Some more, and use of wp->window before wp NULL check in format.c.

This commit is contained in:
nicm
2020-04-09 13:53:50 +00:00
parent b96ac80901
commit 315961faec
3 changed files with 7 additions and 9 deletions

View File

@ -900,11 +900,12 @@ static void
format_cb_pane_at_top(struct format_tree *ft, struct format_entry *fe)
{
struct window_pane *wp = ft->wp;
struct window *w = wp->window;
struct window *w;
int status, flag;
if (wp == NULL)
return;
w = wp->window;
status = options_get_number(w->options, "pane-border-status");
if (status == PANE_STATUS_TOP)
@ -919,11 +920,12 @@ static void
format_cb_pane_at_bottom(struct format_tree *ft, struct format_entry *fe)
{
struct window_pane *wp = ft->wp;
struct window *w = wp->window;
struct window *w;
int status, flag;
if (wp == NULL)
return;
w = wp->window;
status = options_get_number(w->options, "pane-border-status");
if (status == PANE_STATUS_BOTTOM)