From: Eli Zaretskii Date: Thu, 23 Nov 2000 20:37:45 +0000 (+0000) Subject: (decode_coding_emacs_mule): Fix the case of X-Git-Tag: emacs-pretest-21.0.92~113 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2bcdf6628b2e67d770605f1e37c25a2533e9460b;p=emacs.git (decode_coding_emacs_mule): Fix the case of CODING_EOL_LF, which used an uninitialized value of c. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0705bb33a5d..65395237df8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-11-23 Eli Zaretskii + + * coding.c (decode_coding_emacs_mule): Fix the case of + CODING_EOL_LF, which used uninitialized value of c. + 2000-11-23 Stefan Monnier * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local. diff --git a/src/coding.c b/src/coding.c index f44efa9415e..fa79b0b4fdd 100644 --- a/src/coding.c +++ b/src/coding.c @@ -616,9 +616,8 @@ decode_coding_emacs_mule (coding, source, destination, src_bytes, dst_bytes) if (*src == '\r') { - int c; + int c = *src++; - src++; if (coding->eol_type == CODING_EOL_CR) c = '\n'; else if (coding->eol_type == CODING_EOL_CRLF)