(__gconv_open): Initialize invocation_counter and internal_use.
authordrepper <drepper>
Fri, 15 May 1998 21:12:27 +0000 (21:12 +0000)
committerdrepper <drepper>
Fri, 15 May 1998 21:12:27 +0000 (21:12 +0000)
iconv/gconv_open.c

index d7e0191..fb5f88b 100644 (file)
@@ -65,6 +65,12 @@ __gconv_open (const char *toset, const char *fromset, gconv_t *handle)
                     buffer.  */
                  data[cnt].is_last = cnt == nsteps - 1;
 
+                 /* Reset the counter.  */
+                 data[cnt].invocation_counter = 0;
+
+                 /* It's a regular use.  */
+                 data[cnt].internal_use = 0;
+
                  /* We use the `mbstate_t' member in DATA.  */
                  data[cnt].statep = &data[cnt].__state;