about summary refs log tree commit diff
path: root/wcsmbs/btowc.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/btowc.c')
-rw-r--r--wcsmbs/btowc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wcsmbs/btowc.c b/wcsmbs/btowc.c
index cca4645c19..b6a682897b 100644
--- a/wcsmbs/btowc.c
+++ b/wcsmbs/btowc.c
@@ -43,6 +43,8 @@ __btowc (c)
   /* Tell where we want the result.  */
   data.outbuf = (char *) buf;
   data.outbufend = data.outbuf + sizeof (wchar_t);
+  data.invocation_counter = 0;
+  data.internal_use = 1;
   data.is_last = 1;
   data.statep = &data.__state;