summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2011-07-24 01:30:09 -0400
committerEli Zaretskii <eliz@gnu.org>2011-07-24 01:30:09 -0400
commitf25e39b45a5960f8f2bff6c43f88833bc04540a9 (patch)
tree62751905f5f766c555f19bd12d86cdeeb4a8317f /src/xfaces.c
parent47f0b35ef3d1ac82846ba6e641ad783e0f378a6a (diff)
downloademacs-f25e39b45a5960f8f2bff6c43f88833bc04540a9.tar.gz
Fix crash at startup under XASSERTS.
src/xfaces.c (check_lface_attrs) [HAVE_WINDOW_SYSTEM]: Allow `nil' for attrs[LFACE_FONTSET_INDEX].
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index c1e75ab3e59..32729ce6f8d 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1918,7 +1918,8 @@ check_lface_attrs (Lisp_Object *attrs)
|| IGNORE_DEFFACE_P (attrs[LFACE_FONT_INDEX])
|| FONTP (attrs[LFACE_FONT_INDEX]));
xassert (UNSPECIFIEDP (attrs[LFACE_FONTSET_INDEX])
- || STRINGP (attrs[LFACE_FONTSET_INDEX]));
+ || STRINGP (attrs[LFACE_FONTSET_INDEX])
+ || NILP (attrs[LFACE_FONTSET_INDEX]));
#endif
}