diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-05-16 10:18:36 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-05-16 10:18:36 +0000 |
commit | dbcf3c03cabd113eb15cef810206cf3a6a3d45dd (patch) | |
tree | 379217478b9f73ce1b092f00471f0602dc5aba76 /src/fontset.c | |
parent | 18a0a39e9722832a6e861ee0712cffa33918af24 (diff) | |
download | emacs-dbcf3c03cabd113eb15cef810206cf3a6a3d45dd.tar.gz |
(Ffontset_info): Check that face is non-null
before accessing its fields.
Diffstat (limited to 'src/fontset.c')
-rw-r--r-- | src/fontset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontset.c b/src/fontset.c index 00ae161baa2..5e359ddef8f 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -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))))) |