(decode_coding_emacs_mule): Fix the case of

CODING_EOL_LF, which used an uninitialized value of c.
This commit is contained in:
Eli Zaretskii 2000-11-23 20:37:45 +00:00
parent 34f70eda7f
commit 2bcdf6628b
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
* coding.c (decode_coding_emacs_mule): Fix the case of
CODING_EOL_LF, which used uninitialized value of c.
2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
* xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.

View file

@ -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)