changeset 26976:459081ff1f05

(realize_x_face): Don't use uninitialized local variable in xassert.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 22 Dec 1999 16:00:14 +0000
parents 846d53c9f5a5
children 2560ef068519
files src/xfaces.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Wed Dec 22 12:11:42 1999 +0000
+++ b/src/xfaces.c	Wed Dec 22 16:00:14 1999 +0000
@@ -778,7 +778,7 @@
   Lisp_Object rest, frame;
   int i;
 
-  xassert (FRAME_X_P (c->f));
+  xassert (FRAME_X_P (f));
 
   used = (char *) alloca (dpyinfo->n_fonts * sizeof *used);
   bzero (used, dpyinfo->n_fonts * sizeof *used);
@@ -5839,7 +5839,7 @@
   Lisp_Object unibyte_registry;
   struct gcpro gcpro1;
 
-  xassert (FRAME_X_P (f));
+  xassert (FRAME_X_P (c->f));
 
   /* If realizing a face for use in unibyte text, get the X registry
      and encoding to use from Vface_default_registry.  */