2008-12-02 Andreas Schwab <schwab@suse.de>
+ * font.c (font_unparse_fcname): Fix use of uninitialized variable.
+
* doprnt.c (doprnt1): Fix size of charbuf.
2008-12-02 Chong Yidong <cyd@stupidchicken.com>
Lisp_Object family, foundry;
Lisp_Object tail, val;
int point_size;
- int dpi;
int i, len = 1;
char *p;
Lisp_Object styles[3];
}
if (INTEGERP (AREF (font, FONT_DPI_INDEX)))
- len += sprintf (work, ":dpi=%d", dpi);
+ len += sprintf (work, ":dpi=%d", XINT (AREF (font, FONT_DPI_INDEX)));
if (INTEGERP (AREF (font, FONT_SPACING_INDEX)))
len += strlen (":spacing=100");
if (INTEGERP (AREF (font, FONT_AVGWIDTH_INDEX)))