+2005-11-28 Patrick Lam <plam@mit.edu>
+ * src/fccfg.c (FcConfigBuildFonts):
+
+ Fix segfault.
+
2005-11-28 Patrick Lam <plam@mit.edu>
* src/fcint.h:
* src/fcpat.c (FcPatternFindFullFname):
for (i = 0; i < cached_fonts->nfont; i++)
{
+ const char * cfn = (FcChar8 *)FcPatternFindFullFname
+ (cached_fonts->fonts[i]);
+
if (FcConfigAcceptFont (config, cached_fonts->fonts[i]) &&
- FcConfigAcceptFilename (config, (FcChar8 *)FcPatternFindFullFname(cached_fonts->fonts[i])))
+ (cfn && FcConfigAcceptFilename (config, cfn)))
FcFontSetAdd (fonts, cached_fonts->fonts[i]);
cached_fonts->fonts[i] = 0; /* prevent free in FcFontSetDestroy */