Mercurial > emacs
diff src/xfaces.c @ 72170:c594a1694d31
(lookup_named_face, Fdisplay_supports_face_attributes_p):
Add conditional aborts for clarity.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 29 Jul 2006 01:57:38 +0000 |
parents | 760807463226 |
children | 44f03dd44abf 858cb33ae39d |
line wrap: on
line diff
--- a/src/xfaces.c Sat Jul 29 01:56:35 2006 +0000 +++ b/src/xfaces.c Sat Jul 29 01:57:38 2006 +0000 @@ -5717,6 +5717,8 @@ if (!realize_basic_faces (f)) return -1; default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); + if (default_face == NULL) + abort (); /* realize_basic_faces must have set it up */ } if (!get_lface_attributes (f, symbol, symbol_attrs, signal_p)) @@ -6221,6 +6223,8 @@ if (! realize_basic_faces (f)) error ("Cannot realize default face"); def_face = FACE_FROM_ID (f, DEFAULT_FACE_ID); + if (def_face == NULL) + abort (); /* realize_basic_faces must have set it up */ } /* Dispatch to the appropriate handler. */