changeset 33828:ef38af5ee8d2

(decode_coding_emacs_mule): Fix the case of CODING_EOL_LF, which used an uninitialized value of c.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 23 Nov 2000 20:36:02 +0000
parents d939cbd0aef4
children dbbf1e9352f7
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Nov 23 19:03:07 2000 +0000
+++ b/src/coding.c	Thu Nov 23 20:36:02 2000 +0000
@@ -616,9 +616,8 @@
 
       if (*src == '\r')
 	{
-	  int c;
-
-	  src++;
+	  int c = *src++;
+
 	  if (coding->eol_type == CODING_EOL_CR)
 	    c = '\n';
 	  else if (coding->eol_type == CODING_EOL_CRLF)