aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorEli Zaretskii2000-11-23 20:37:45 +0000
committerEli Zaretskii2000-11-23 20:37:45 +0000
commit2bcdf6628b2e67d770605f1e37c25a2533e9460b (patch)
tree163ef87cb7064fb569ef91f560b84a7b29d73b04 /src/coding.c
parent34f70eda7f649abf733481672d7925e6e9aa61bb (diff)
downloademacs-2bcdf6628b2e67d770605f1e37c25a2533e9460b.tar.gz
emacs-2bcdf6628b2e67d770605f1e37c25a2533e9460b.zip
(decode_coding_emacs_mule): Fix the case of
CODING_EOL_LF, which used an uninitialized value of c.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 1 insertions, 2 deletions
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)
616 616
617 if (*src == '\r') 617 if (*src == '\r')
618 { 618 {
619 int c; 619 int c = *src++;
620 620
621 src++;
622 if (coding->eol_type == CODING_EOL_CR) 621 if (coding->eol_type == CODING_EOL_CR)
623 c = '\n'; 622 c = '\n';
624 else if (coding->eol_type == CODING_EOL_CRLF) 623 else if (coding->eol_type == CODING_EOL_CRLF)