From d67f437458ed96b55d475a471d1a16da52ca4cd4 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 13 Apr 2020 11:58:38 +0200 Subject: mbstate: fix compile warning on systems where mbstate_t isn't an integral An empty initializer still ensures the entire object is zero-initialized. --- search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'search.c') 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) { -- cgit v1.3