]> git.eshelyaron.com Git - emacs.git/commitdiff
(ftfont_driver): Initialize ftfont_driver.type by 0.
authorKenichi Handa <handa@m17n.org>
Wed, 29 Nov 2006 12:17:27 +0000 (12:17 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 29 Nov 2006 12:17:27 +0000 (12:17 +0000)
(ftfont_font_format): Fix previous change.

src/ftfont.c

index 32e503b33f70fab19d8a68e7fe83fbf937f93580..0853b8af67f56b04ae93810cae14568557033e87 100644 (file)
@@ -278,7 +278,7 @@ static int ftfont_anchor_point P_ ((struct font *, unsigned, int,
 
 struct font_driver ftfont_driver =
   {
-    (Lisp_Object) NULL,                /* Qfreetype */
+    0,                         /* Qfreetype */
     ftfont_get_cache,
     ftfont_list,
     ftfont_match,
@@ -966,7 +966,7 @@ ftfont_font_format (FcPattern *pattern)
   if (strcmp ((char *) str, "BDF") == 0)  
     return intern ("bdf");
 #else  /* not FC_FONTFORMAT */
-  if (FcPatternGetString (pattern, FC_FILE, 0, &file) != FcResultMatch)
+  if (FcPatternGetString (pattern, FC_FILE, 0, &str) != FcResultMatch)
     return Qnil;
   if (strcasestr ((char *) str, ".ttf") == 0)
     return intern ("truetype");