From e22ef6eb695025c26286d5a13ad2696efbf7cb85 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 22 Dec 1999 16:01:16 +0000 Subject: [PATCH] (realize_x_face): Don't use uninitialized local variable in xassert. --- src/ChangeLog | 2 +- src/xfaces.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 193684fab36..eab72435508 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,6 @@ 1999-12-22 Gerd Moellmann - * xfaces.c (clear_font_table): Don't use uninitialized local + * xfaces.c (realize_x_face): Don't use uninitialized local variable in xassert. 1999-12-22 Kenichi Handa diff --git a/src/xfaces.c b/src/xfaces.c index cdb1612f048..dfe8f2e4293 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -778,7 +778,7 @@ clear_font_table (f) 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 @@ realize_x_face (c, attrs, charset) 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. */ -- 2.39.5