From 2bcdf6628b2e67d770605f1e37c25a2533e9460b Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 23 Nov 2000 20:37:45 +0000 Subject: [PATCH] (decode_coding_emacs_mule): Fix the case of CODING_EOL_LF, which used an uninitialized value of c. --- src/ChangeLog | 5 +++++ src/coding.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.5