]> git.eshelyaron.com Git - emacs.git/commitdiff
(setup_coding_system): Be sure to initialize coding->category_idx.
authorKenichi Handa <handa@m17n.org>
Tue, 5 Dec 2000 12:34:56 +0000 (12:34 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 5 Dec 2000 12:34:56 +0000 (12:34 +0000)
src/coding.c

index 1b2599712a301112b6d80ce78ccacc223963f34a..62bb2223d22335338d80ce839a334749179630f9 100644 (file)
@@ -3011,6 +3011,12 @@ setup_coding_system (coding_system, coding)
        }
       else
        coding->type = coding_type_no_conversion;
+      /* Initialize this member.  Any thing other than
+        CODING_CATEGORY_IDX_UTF_16_BE and
+        CODING_CATEGORY_IDX_UTF_16_LE are ok because they have
+        special treatment in detect_eol.  */
+      coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE;
+
       return 0;
     }