mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05: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
vt.c
2
vt.c
|
|
@ -536,7 +536,7 @@ static void
|
|||
action_utf8_print(struct terminal *term, uint8_t c)
|
||||
{
|
||||
/* Convert to wchar */
|
||||
mbstate_t ps = {0};
|
||||
mbstate_t ps = {};
|
||||
wchar_t wc;
|
||||
size_t count = mbrtowc(
|
||||
&wc, (const char *)term->vt.utf8.data, term->vt.utf8.idx, &ps);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue