aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.c b/search.c
index 9304ab48..fcc08587 100644
--- a/search.c
+++ b/search.c
@@ -613,7 +613,7 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym,
}
const char *src = (const char *)buf;
- mbstate_t ps = {0};
+ mbstate_t ps = {};
size_t wchars = mbsnrtowcs(NULL, &src, count, 0, &ps);
if (wchars == -1) {