1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00

(Ffontset_info): Check that face is non-null

before accessing its fields.
This commit is contained in:
Gerd Moellmann 2001-05-16 10:18:36 +00:00
parent 18a0a39e97
commit dbcf3c03ca
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-05-16 Gerd Moellmann <gerd@gnu.org>
* fontset.c (Ffontset_info): Check that face is non-null
before accessing its fields.
2001-05-15 Gerd Moellmann <gerd@gnu.org>
* keyboard.c (read_key_sequence): Prevent generating a fake

View file

@ -1319,7 +1319,7 @@ If FRAME is omitted, it defaults to the currently selected frame.")
if (INTEGERP (face_id))
{
face = FACE_FROM_ID (f, XINT (face_id));
if (face->font && face->font_name)
if (face && face->font && face->font_name)
{
font = build_string (face->font_name);
if (NILP (Fmember (font, XCDR (XCDR (elt)))))