mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 22:26:18 +00:00
fixed site of null dereference in layout.c
This commit is contained in:
2
layout.c
2
layout.c
@@ -262,6 +262,7 @@ layout_fix_offsets1(struct layout_cell *lc)
|
||||
xoff = lc->xoff;
|
||||
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
|
||||
if (lcchild->type == LAYOUT_WINDOWPANE &&
|
||||
lcchild->wp != NULL &&
|
||||
lcchild->wp->flags & PANE_MINIMISED)
|
||||
continue;
|
||||
lcchild->xoff = xoff;
|
||||
@@ -274,6 +275,7 @@ layout_fix_offsets1(struct layout_cell *lc)
|
||||
yoff = lc->yoff;
|
||||
TAILQ_FOREACH(lcchild, &lc->cells, entry) {
|
||||
if (lcchild->type == LAYOUT_WINDOWPANE &&
|
||||
lcchild->wp != NULL &&
|
||||
lcchild->wp->flags & PANE_MINIMISED)
|
||||
continue;
|
||||
lcchild->xoff = lc->xoff;
|
||||
|
||||
Reference in New Issue
Block a user