]> git.eshelyaron.com Git - emacs.git/commitdiff
(detect_coding_system): If detect_eol_type returns
authorKenichi Handa <handa@m17n.org>
Fri, 21 Aug 1998 06:34:13 +0000 (06:34 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 21 Aug 1998 06:34:13 +0000 (06:34 +0000)
CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
correctly.

src/coding.c

index f44a0a09d40f3bde3ec780573e7c4a3641ded902..6b105b94a9c34036ed13c34a587de5812cc5d79c 100644 (file)
@@ -4611,7 +4611,7 @@ detect_coding_system (src, src_bytes, highest)
   coding_mask = detect_coding_mask (src, src_bytes, NULL, &dummy);
   eol_type  = detect_eol_type (src, src_bytes, &dummy);
   if (eol_type == CODING_EOL_INCONSISTENT)
-    eol_type == CODING_EOL_UNDECIDED;
+    eol_type = CODING_EOL_UNDECIDED;
 
   if (!coding_mask)
     {