aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-05-16 10:18:36 +0000
committerGerd Moellmann2001-05-16 10:18:36 +0000
commitdbcf3c03cabd113eb15cef810206cf3a6a3d45dd (patch)
tree379217478b9f73ce1b092f00471f0602dc5aba76 /src
parent18a0a39e9722832a6e861ee0712cffa33918af24 (diff)
downloademacs-dbcf3c03cabd113eb15cef810206cf3a6a3d45dd.tar.gz
emacs-dbcf3c03cabd113eb15cef810206cf3a6a3d45dd.zip
(Ffontset_info): Check that face is non-null
before accessing its fields.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fontset.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cafe4b22ac1..7c3d7b660a6 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-05-16 Gerd Moellmann <gerd@gnu.org>
2
3 * fontset.c (Ffontset_info): Check that face is non-null
4 before accessing its fields.
5
12001-05-15 Gerd Moellmann <gerd@gnu.org> 62001-05-15 Gerd Moellmann <gerd@gnu.org>
2 7
3 * keyboard.c (read_key_sequence): Prevent generating a fake 8 * keyboard.c (read_key_sequence): Prevent generating a fake
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)))))