From 453b38f050e3e87b14218df175bdd1d71740fc41 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 3 Dec 2008 01:22:25 +0000 Subject: [PATCH] (decode_coding_utf_8): Likewise. --- src/ChangeLog | 1 + src/coding.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2