]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_utf_8): Likewise.
authorKenichi Handa <handa@m17n.org>
Wed, 3 Dec 2008 01:22:25 +0000 (01:22 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 3 Dec 2008 01:22:25 +0000 (01:22 +0000)
src/ChangeLog
src/coding.c

index eab70fa898478630aec2ff86a0c6461ae84396df..18bae46b1b689c78b81d59e283c9ad5b54a0bce7 100644 (file)
@@ -2,6 +2,7 @@
 
        * coding.c (decode_coding_utf_16): Initialize consumed_chars_base
        to 0.
+       (decode_coding_utf_8): Likewise.
 
 2008-12-02  Chong Yidong  <cyd@stupidchicken.com>
 
index 231edf5e34559868ec435cf3bd303602d05449fa..88678a007671130b589240c57558aea06bbe95e7 100644 (file)
@@ -1326,7 +1326,7 @@ decode_coding_utf_8 (coding)
   const unsigned char *src_base;
   int *charbuf = coding->charbuf + coding->charbuf_used;
   int *charbuf_end = coding->charbuf + coding->charbuf_size;
-  int consumed_chars = 0, consumed_chars_base;
+  int consumed_chars = 0, consumed_chars_base = 0;
   int multibytep = coding->src_multibyte;
   enum utf_bom_type bom = CODING_UTF_8_BOM (coding);
   Lisp_Object attr, charset_list;