# HG changeset patch # User Richard M. Stallman # Date 1154138258 0 # Node ID c594a1694d31476826c699d6cbe217af7e42e890 # Parent 06d60c338318d5614aacd63887df12f0d9e60910 (lookup_named_face, Fdisplay_supports_face_attributes_p): Add conditional aborts for clarity. diff -r 06d60c338318 -r c594a1694d31 src/xfaces.c --- 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. */