(decode_coding_utf_8): Likewise.

This commit is contained in:
Kenichi Handa 2008-12-03 01:22:25 +00:00
parent 3a8406e126
commit 453b38f050
2 changed files with 2 additions and 1 deletions

View 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>

View 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;