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

window_name is evaluated early. Reported by Mikolaj Kucharski.
pull/1964/head
nicm 2019-10-28 09:07:59 +00:00
parent 6700018ce5
commit ccdebead79
1 changed files with 1 additions and 1 deletions

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