summaryrefslogtreecommitdiff
path: root/src/fontset.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2015-06-12 21:09:23 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2015-06-12 21:18:05 +0200
commitc660910d2043503f338fc254a2e1a33e747b4df1 (patch)
tree903aaee332f63f3206ab3313c7ea3b895020cde5 /src/fontset.c
parent00119c6cb6b33161bc593947aa0991caf9d7ad65 (diff)
downloademacs-c660910d2043503f338fc254a2e1a33e747b4df1.tar.gz
Fix crash in fontset-info
* src/fontset.c (Ffontset_info): Check that the RFONT-DEF elt is non-nil.
Diffstat (limited to 'src/fontset.c')
-rw-r--r--src/fontset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 97bdbcef5bf..5fc92feb130 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -1983,7 +1983,7 @@ format is the same as above. */)
for (j = 0; j < ASIZE (val); j++)
{
elt = AREF (val, j);
- if (FONT_OBJECT_P (RFONT_DEF_OBJECT (elt)))
+ if (!NILP (elt) && FONT_OBJECT_P (RFONT_DEF_OBJECT (elt)))
{
Lisp_Object font_object = RFONT_DEF_OBJECT (elt);
Lisp_Object slot, name;