Could of minor tidy ups.

This commit is contained in:
nicm
2026-07-06 21:44:26 +00:00
parent d33d5b7de8
commit ff09914327
2 changed files with 2 additions and 6 deletions

View File

@@ -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);
}