]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_emacs_mule): Fix the case of
authorEli Zaretskii <eliz@gnu.org>
Thu, 23 Nov 2000 20:37:45 +0000 (20:37 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 23 Nov 2000 20:37:45 +0000 (20:37 +0000)
CODING_EOL_LF, which used an uninitialized value of c.

src/ChangeLog
src/coding.c

index 0705bb33a5d18439640a62a2ee6a39b6270850a1..65395237df85d6a669a6205c4a26dc603fd8b400 100644 (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.
index f44efa9415e976c1c68b314692766028ed1ad859..fa79b0b4fdd3027252debdbd16096515b7483c53 100644 (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)