From: Gerd Moellmann Date: Wed, 22 Dec 1999 16:01:16 +0000 (+0000) Subject: (realize_x_face): Don't use uninitialized local X-Git-Tag: emacs-pretest-21.0.90~5645 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e22ef6eb695025c26286d5a13ad2696efbf7cb85;p=emacs.git (realize_x_face): Don't use uninitialized local variable in xassert. --- 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. */