From dabdffafa59f43314333be42aa519d7fff1b4498 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Aug 2020 07:42:20 +0200 Subject: don't use empty struct initializers --- search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index 792fcae8..551d21ba 100644 --- a/search.c +++ b/search.c @@ -648,7 +648,7 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key, } } - uint8_t buf[64] = {}; + uint8_t buf[64] = {0}; int count = 0; if (compose_status == XKB_COMPOSE_COMPOSED) { @@ -666,7 +666,7 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key, return; const char *src = (const char *)buf; - mbstate_t ps = {}; + mbstate_t ps = {0}; size_t wchars = mbsnrtowcs(NULL, &src, count, 0, &ps); if (wchars == -1) { -- cgit v1.3