nsxivb78aaee
Initialize window bar buffers to empty string
Fixes issue #308.
+3 −1
2 files changed
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20180122 | |
| 1 | + | VERSION = git-20180411 | |
| 2 | 2 | ||
| 3 | 3 | srcdir = . | |
| 4 | 4 | VPATH = $(srcdir) | |
| @@ -134,7 +134,9 @@ void win_init(win_t *win) | |||
| 134 | 134 | win->bar.r.size = BAR_R_LEN; | |
| 135 | 135 | /* 3 padding bytes needed by utf8_decode */ | |
| 136 | 136 | win->bar.l.buf = emalloc(win->bar.l.size + 3); | |
| 137 | + | win->bar.l.buf[0] = '\0'; | |
| 137 | 138 | win->bar.r.buf = emalloc(win->bar.r.size + 3); | |
| 139 | + | win->bar.r.buf[0] = '\0'; | |
| 138 | 140 | win->bar.h = options->hide_bar ? 0 : barheight; | |
| 139 | 141 | ||
| 140 | 142 | INIT_ATOM_(WM_DELETE_WINDOW); | |