Mercurial > emacs
changeset 100131:0e4115b39b5d
(decode_coding_utf_16): Initialize consumed_chars_base
to 0.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 03 Dec 2008 01:17:44 +0000 |
parents | 0410bbc1ef45 |
children | 57b5c5aacd21 |
files | src/coding.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Tue Dec 02 23:12:56 2008 +0000 +++ b/src/coding.c Wed Dec 03 01:17:44 2008 +0000 @@ -1637,7 +1637,7 @@ 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);