diff options
Diffstat (limited to 'wcsmbs/mbrtowc.c')
-rw-r--r-- | wcsmbs/mbrtowc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wcsmbs/mbrtowc.c b/wcsmbs/mbrtowc.c index 1dcaf968ea..837b42f1f1 100644 --- a/wcsmbs/mbrtowc.c +++ b/wcsmbs/mbrtowc.c @@ -45,6 +45,8 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps) /* Tell where we want the result. */ data.outbuf = outbuf; data.outbufend = outbuf + sizeof (wchar_t); + data.invocation_counter = 0; + data.internal_use = 1; data.is_last = 1; data.statep = ps ?: &state; |