changeset 103115:d6b2b717f098

(fontset_find_font): Check if rfont_def is Qnil or not.
author Kenichi Handa <handa@m17n.org>
date Thu, 30 Apr 2009 07:01:33 +0000
parents fa8e2c663118
children f08ab194413f
files src/fontset.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fontset.c	Thu Apr 30 05:01:57 2009 +0000
+++ b/src/fontset.c	Thu Apr 30 07:01:33 2009 +0000
@@ -631,6 +631,8 @@
       for (i++; i < ASIZE (vec); i++)
 	{
 	  rfont_def = AREF (vec, i);
+	  if (NILP (rfont_def))
+	    return Qt;
 	  if (! EQ (RFONT_DEF_FONT_DEF (rfont_def), font_def))
 	    break;
 	  font_object = RFONT_DEF_OBJECT (AREF (vec, i));