From: Kenichi Handa Date: Wed, 3 Dec 2008 01:22:25 +0000 (+0000) Subject: (decode_coding_utf_8): Likewise. X-Git-Tag: emacs-pretest-23.0.90~1353 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=453b38f050e3e87b14218df175bdd1d71740fc41;p=emacs.git (decode_coding_utf_8): Likewise. --- diff --git a/src/ChangeLog b/src/ChangeLog index eab70fa8984..18bae46b1b6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 diff --git a/src/coding.c b/src/coding.c index 231edf5e345..88678a00767 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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;