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)