mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:33:27 +00:00
Some more, and use of wp->window before wp NULL check in format.c.
This commit is contained in:
6
format.c
6
format.c
@ -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)
|
||||
|
Reference in New Issue
Block a user