Skip to content

Commit

Permalink
(decode_coding_charset): Check type of an element of
Browse files Browse the repository at this point in the history
vector VALIDS.
  • Loading branch information
Kenichi Handa committed Dec 3, 2008
1 parent e463442 commit d1099bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coding.c
Original file line number Diff line number Diff line change
Expand Up @@ -5160,7 +5160,7 @@ decode_coding_charset (coding)
code = c;

val = AREF (valids, c);
if (NILP (val))
if (! INTEGERP (val) && ! CONSP (val))
goto invalid_code;
if (INTEGERP (val))
{
Expand Down

0 comments on commit d1099bb

Please sign in to comment.