From f73891b012ed8fc4c3769ea7d8814bc9cf260b38 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 27 Oct 2006 07:37:13 +0000 Subject: [PATCH] (font_unparse_fcname): Pay attention to the case that some of font property is a null string. --- src/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font.c b/src/font.c index 505a91de163..b1bdd10d51a 100644 --- a/src/font.c +++ b/src/font.c @@ -1324,7 +1324,7 @@ font_unparse_fcname (font, pixel_size, name, nbytes) p += sprintf (p, ":foundry=%s", SDATA (SYMBOL_NAME (AREF (font, FONT_FOUNDRY_INDEX)))); for (i = 0; i < 3; i++) - if (! NILP (styles [i])) + if (SYMBOLP (styles[i]) && ! NILP (styles [i])) p += sprintf (p, ":%s=%s", style_names[i], SDATA (SYMBOL_NAME (styles [i]))); if (dpi >= 0) -- 2.39.5