mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
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:
parent
a6fc5f10fb
commit
d67f437458
3 changed files with 3 additions and 3 deletions
2
search.c
2
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue