changeset 100170:86455974b971

(decode_coding_charset): Check type of an element of vector VALIDS.
author Kenichi Handa <handa@m17n.org>
date Wed, 03 Dec 2008 05:48:11 +0000
parents 4d13bea1e4bb
children d42aff5ca541
files src/coding.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Wed Dec 03 05:30:38 2008 +0000
+++ b/src/coding.c	Wed Dec 03 05:48:11 2008 +0000
@@ -5160,7 +5160,7 @@
       code = c;
 
       val = AREF (valids, c);
-      if (NILP (val))
+      if (! INTEGERP (val) && ! CONSP (val))
 	goto invalid_code;
       if (INTEGERP (val))
 	{