From 1b17adfd3b07d24b4665ff66fd1b1dcc05f6c823 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 3 Dec 2008 05:48:11 +0000 Subject: [PATCH] (decode_coding_charset): Check type of an element of vector VALIDS. --- src/coding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.2