mbstate: fix compile warning on systems where mbstate_t isn't an integral

An empty initializer still ensures the entire object is
zero-initialized.
This commit is contained in:
Daniel Eklöf 2020-04-13 11:58:38 +02:00
parent a6fc5f10fb
commit d67f437458
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 3 additions and 3 deletions

View file

@ -695,7 +695,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
const wchar_t wc = 0x80 | buf[0];
char utf8[8];
mbstate_t ps = {0};
mbstate_t ps = {};
size_t chars = wcrtomb(utf8, wc, &ps);
if (chars != (size_t)-1)