diff options
author | nicm <nicm> | 2019-10-28 09:07:59 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-10-28 09:07:59 +0000 |
commit | ccdebead79d4c20a0ad82f247d9339224af19a82 (patch) | |
tree | 1567b5818226c7e71d5b76b14d6323b78867ff17 | |
parent | 6700018ce519025883b33e7df7d09708b1f9526b (diff) |
Start with empty rather than NULL window name to avoid NULL printf if
window_name is evaluated early. Reported by Mikolaj Kucharski.
-rw-r--r-- | window.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |