From: Kenichi Handa Date: Wed, 3 Dec 2008 01:19:06 +0000 (+0000) Subject: (decode_coding_utf_16): Initialize consumed_chars_base X-Git-Tag: emacs-pretest-23.0.90~1354 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3a8406e12624232c1d0c36307050c32514713972;p=emacs.git (decode_coding_utf_16): Initialize consumed_chars_base to 0. --- diff --git a/src/ChangeLog b/src/ChangeLog index ea82b8206e0..eab70fa8984 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-12-03 Kenichi Handa + + * coding.c (decode_coding_utf_16): Initialize consumed_chars_base + to 0. + 2008-12-02 Chong Yidong * keyboard.c (make_lispy_position): Only use PT if the selected diff --git a/src/coding.c b/src/coding.c index 286fc5cd0a9..231edf5e345 100644 --- a/src/coding.c +++ b/src/coding.c @@ -1637,7 +1637,7 @@ decode_coding_utf_16 (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_16_BOM (coding); enum utf_16_endian_type endian = CODING_UTF_16_ENDIAN (coding);