summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2008-12-03 05:48:11 +0000
committerKenichi Handa <handa@m17n.org>2008-12-03 05:48:11 +0000
commit1b17adfd3b07d24b4665ff66fd1b1dcc05f6c823 (patch)
treeb47ba9a98eb287f3de90c1147754817cf7c1e0b8
parentb1bde62298d30e1f44497e19cf970d34a7850d64 (diff)
downloademacs-1b17adfd3b07d24b4665ff66fd1b1dcc05f6c823.tar.gz
(decode_coding_charset): Check type of an element of
vector VALIDS.
-rw-r--r--src/coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index acdb92214c2..8890eb188ce 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -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))
{