summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2019-10-28 09:07:59 +0000
committernicm <nicm>2019-10-28 09:07:59 +0000
commitccdebead79d4c20a0ad82f247d9339224af19a82 (patch)
tree1567b5818226c7e71d5b76b14d6323b78867ff17 /window.c
parent6700018ce519025883b33e7df7d09708b1f9526b (diff)
Start with empty rather than NULL window name to avoid NULL printf if
window_name is evaluated early. Reported by Mikolaj Kucharski.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index e3b20a3e..21bf366f 100644
--- a/window.c
+++ b/window.c
@@ -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);