aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-23 05:42:20 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-23 08:07:00 +0000
commitdabdffafa59f43314333be42aa519d7fff1b4498 (patch)
tree768ae24bdb5c817396865918e3739a8dbd49ac8d /search.c
parentconfig: add user-configured search-binding to the correct binding list (diff)
don't use empty struct initializers
Diffstat (limited to 'search.c')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
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) {