avoid crashes.
reviewed by: plam
+2006-01-18 Mike Fabian <mfabian@suse.de>
+ reviewed by: plam
+
+ * src/fcdir.c (FcDirScanConfig):
+
+ Properly order the FcConfigAddFontDir and FcConfigNormalizeFontDir
+ calls to avoid crashes.
+
2006-01-14 Patirck Lam <plam@mit.edu>
* src/fccache.c (FcDirCacheConsume):
if (config && !FcConfigAcceptFilename (config, dir))
return FcTrue;
+ if (config)
+ FcConfigAddFontDir (config, dir);
+
if (!force)
{
/*
return FcFalse;
}
- FcConfigAddFontDir (config, dir);
tmpSet = FcFontSetCreate();
if (!tmpSet)
{