Krolyxon
Commit b78aaee

Branches

Refs →

nsxivb78aaee

Initialize window bar buffers to empty string

Fixes issue #308.
Author
Bert Münnich
Date
2018-04-11 09:55 +0200
Parent
09b04d7
Commit
b78aaee9d7412beedf47cbffda19cf874cff8eaf

+3 −1

2 files changed

  1. M Makefile +1 −1
  2. M window.c +2 −0
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20180122
1+VERSION = git-20180411
22
33 srcdir = .
44 VPATH = $(srcdir)
M window.c View
@@ -134,7 +134,9 @@ void win_init(win_t *win)
134134 win->bar.r.size = BAR_R_LEN;
135135 /* 3 padding bytes needed by utf8_decode */
136136 win->bar.l.buf = emalloc(win->bar.l.size + 3);
137+ win->bar.l.buf[0] = '\0';
137138 win->bar.r.buf = emalloc(win->bar.r.size + 3);
139+ win->bar.r.buf[0] = '\0';
138140 win->bar.h = options->hide_bar ? 0 : barheight;
139141
140142 INIT_ATOM_(WM_DELETE_WINDOW);