Commit 3ddb0639 authored by Paul Eggert's avatar Paul Eggert
Browse files

* font.c (font_unparse_fcname): Abort in an "impossible" situation

instead of using an uninitialized var.
parent 13a547c6
2011-03-16 Paul Eggert <eggert@cs.ucla.edu>
 
* font.c (font_unparse_fcname): Abort in an "impossible" situation
instead of using an uninitialized var.
* character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
 
* font.c (font_unparse_xlfd): Don't mix pointers to variables with
......@@ -1566,8 +1566,10 @@ font_unparse_fcname (Lisp_Object font, int pixel_size, char *name, int nbytes)
point_size = -1;
len += 21; /* for ":pixelsize=NUM" */
}
else if (FLOATP (val))
else
{
if (! FLOATP (val))
abort ();
pixel_size = -1;
point_size = (int) XFLOAT_DATA (val);
len += 11; /* for "-NUM" */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment