summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 05be5bb..56d7cd8 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -1147,8 +1147,7 @@ static void eval_status(struct bfs_eval *state, struct bfs_bar *bar, struct time
size_t pathmax = width - rhslen - 3;
size_t pathwidth = 0;
size_t lhslen = 0;
- mbstate_t mb;
- memset(&mb, 0, sizeof(mb));
+ mbstate_t mb = {0};
for (size_t i = lhslen; lhslen < pathlen; lhslen = i) {
wint_t wc = xmbrtowc(status, &i, pathlen, &mb);
int cwidth;