mirror of
https://github.com/tmux/tmux.git
synced 2026-07-09 02:49:30 +00:00
Merge branch 'obsd-master'
This commit is contained in:
6
layout.c
6
layout.c
@@ -62,11 +62,9 @@ layout_create_cell(struct layout_cell *lcparent)
|
||||
{
|
||||
struct layout_cell *lc;
|
||||
|
||||
lc = xmalloc(sizeof *lc);
|
||||
lc = xcalloc(1, sizeof *lc);
|
||||
lc->type = LAYOUT_WINDOWPANE;
|
||||
lc->flags = 0;
|
||||
lc->parent = lcparent;
|
||||
|
||||
TAILQ_INIT(&lc->cells);
|
||||
|
||||
lc->sx = UINT_MAX;
|
||||
@@ -81,8 +79,6 @@ layout_create_cell(struct layout_cell *lcparent)
|
||||
lc->saved_xoff = INT_MAX;
|
||||
lc->saved_yoff = INT_MAX;
|
||||
|
||||
lc->wp = NULL;
|
||||
|
||||
return (lc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user