Start with empty rather than NULL window name to avoid NULL printf if

window_name is evaluated early. Reported by Mikolaj Kucharski.
This commit is contained in:
nicm 2019-10-28 09:07:59 +00:00
parent 6700018ce5
commit ccdebead79

View File

@ -313,7 +313,7 @@ window_create(u_int sx, u_int sy)
struct window *w;
w = xcalloc(1, sizeof *w);
w->name = NULL;
w->name = xstrdup("");
w->flags = 0;
TAILQ_INIT(&w->panes);