summaryrefslogtreecommitdiff
path: root/src/wc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wc.c')
-rw-r--r--src/wc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wc.c b/src/wc.c
index 8cfd974ca..ad25ed8d0 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -275,7 +275,7 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
{
bool in_word = false;
uintmax_t linepos = 0;
- mbstate_t state = { 0, };
+ DECLARE_ZEROED_AGGREGATE (mbstate_t, state);
bool in_shift = false;
# if SUPPORT_OLD_MBRTOWC
/* Back-up the state before each multibyte character conversion and