(mconv_reset_converter): Set internal->used to 0.
authorhanda <handa>
Fri, 11 May 2007 07:07:57 +0000 (07:07 +0000)
committerhanda <handa>
Fri, 11 May 2007 07:07:57 +0000 (07:07 +0000)
src/coding.c

index d5c8232..4fc5e65 100644 (file)
@@ -4238,6 +4238,7 @@ mconv_reset_converter (MConverter *converter)
   converter->nchars = converter->nbytes = 0;
   converter->result = MCONVERSION_RESULT_SUCCESS;
   internal->carryover_bytes = 0;
+  internal->used = 0;
   mtext_reset (internal->unread);
   if (internal->coding->resetter)
     return (*internal->coding->resetter) (converter);