mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-17 05:33:52 -04:00
don't use empty struct initializers
This commit is contained in:
parent
ddef95c297
commit
dabdffafa5
7 changed files with 27 additions and 27 deletions
4
search.c
4
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue