mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-30 11:09:23 +00:00
(decode_coding_utf_16): Initialize consumed_chars_base
to 0.
This commit is contained in:
parent
9373034275
commit
3a8406e126
@ -1,3 +1,8 @@
|
||||
2008-12-03 Kenichi Handa <handa@m17n.org>
|
||||
|
||||
* coding.c (decode_coding_utf_16): Initialize consumed_chars_base
|
||||
to 0.
|
||||
|
||||
2008-12-02 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* keyboard.c (make_lispy_position): Only use PT if the selected
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user