diff options
author | Bert Münnich <ber.t@posteo.de> | 2018-04-11 09:55:28 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2018-04-11 09:55:28 +0200 |
commit | b78aaee9d7412beedf47cbffda19cf874cff8eaf (patch) | |
tree | 873d1f5876a57c6346d3ba995569dafa23fff0d5 | |
parent | 09b04d7aefc55112b3994c30236010750fbec369 (diff) |
Initialize window bar buffers to empty string
Fixes issue #308.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | window.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -VERSION = git-20180122 +VERSION = git-20180411 srcdir = . VPATH = $(srcdir) @@ -134,7 +134,9 @@ void win_init(win_t *win) win->bar.r.size = BAR_R_LEN; /* 3 padding bytes needed by utf8_decode */ win->bar.l.buf = emalloc(win->bar.l.size + 3); + win->bar.l.buf[0] = '\0'; win->bar.r.buf = emalloc(win->bar.r.size + 3); + win->bar.r.buf[0] = '\0'; win->bar.h = options->hide_bar ? 0 : barheight; INIT_ATOM_(WM_DELETE_WINDOW); |