diff options
| author | Gerd Moellmann | 2001-05-16 10:18:36 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-16 10:18:36 +0000 |
| commit | dbcf3c03cabd113eb15cef810206cf3a6a3d45dd (patch) | |
| tree | 379217478b9f73ce1b092f00471f0602dc5aba76 /src/fontset.c | |
| parent | 18a0a39e9722832a6e861ee0712cffa33918af24 (diff) | |
| download | emacs-dbcf3c03cabd113eb15cef810206cf3a6a3d45dd.tar.gz emacs-dbcf3c03cabd113eb15cef810206cf3a6a3d45dd.zip | |
(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.") | |||
| 1319 | if (INTEGERP (face_id)) | 1319 | if (INTEGERP (face_id)) |
| 1320 | { | 1320 | { |
| 1321 | face = FACE_FROM_ID (f, XINT (face_id)); | 1321 | face = FACE_FROM_ID (f, XINT (face_id)); |
| 1322 | if (face->font && face->font_name) | 1322 | if (face && face->font && face->font_name) |
| 1323 | { | 1323 | { |
| 1324 | font = build_string (face->font_name); | 1324 | font = build_string (face->font_name); |
| 1325 | if (NILP (Fmember (font, XCDR (XCDR (elt))))) | 1325 | if (NILP (Fmember (font, XCDR (XCDR (elt))))) |