diff options
author | nicm <nicm> | 2020-04-09 13:53:50 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-09 13:53:50 +0000 |
commit | 315961faeceefae30d3fcce28c3171fdec7e5c5d (patch) | |
tree | 9bfba9448636c417dba5dc6582bd6b825c6450d9 /format.c | |
parent | b96ac809018c461b55aed66459a68a71dd08047f (diff) | |
download | rtmux-315961faeceefae30d3fcce28c3171fdec7e5c5d.tar.gz rtmux-315961faeceefae30d3fcce28c3171fdec7e5c5d.tar.bz2 rtmux-315961faeceefae30d3fcce28c3171fdec7e5c5d.zip |
Some more, and use of wp->window before wp NULL check in format.c.
Diffstat (limited to 'format.c')
-rw-r--r-- | format.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |