comparison src/coding.c @ 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 3d8fb019040f
children 6ed22a848efa
comparison
equal deleted inserted replaced
33827:d939cbd0aef4 33828:ef38af5ee8d2
614 unsigned char tmp[MAX_MULTIBYTE_LENGTH], *p; 614 unsigned char tmp[MAX_MULTIBYTE_LENGTH], *p;
615 int bytes; 615 int bytes;
616 616
617 if (*src == '\r') 617 if (*src == '\r')
618 { 618 {
619 int c; 619 int c = *src++;
620 620
621 src++;
622 if (coding->eol_type == CODING_EOL_CR) 621 if (coding->eol_type == CODING_EOL_CR)
623 c = '\n'; 622 c = '\n';
624 else if (coding->eol_type == CODING_EOL_CRLF) 623 else if (coding->eol_type == CODING_EOL_CRLF)
625 { 624 {
626 ONE_MORE_BYTE (c); 625 ONE_MORE_BYTE (c);