From: Kenichi Handa Date: Wed, 3 Dec 2008 05:48:11 +0000 (+0000) Subject: (decode_coding_charset): Check type of an element of X-Git-Tag: emacs-pretest-23.0.90~1319 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1b17adfd3b07d24b4665ff66fd1b1dcc05f6c823;p=emacs.git (decode_coding_charset): Check type of an element of vector VALIDS. --- 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)) {