]> git.wh0rd.org - fontconfig.git/blobdiff - fc-cache/fc-cache.c
Only load requested fonts for fc-cache, and cleanup memory handling:
[fontconfig.git] / fc-cache / fc-cache.c
index 507902f3a547649c70df678d3ba1c91c28094966..fc0c4e511913ca3e90acd3f559281ffc9486d8c8 100644 (file)
@@ -270,8 +270,7 @@ main (int argc, char **argv)
     if (systemOnly)
        FcConfigEnableHome (FcFalse);
     /* need to use FcInitLoadConfig when we use dirs */
-    FcInit ();
-    config = FcConfigGetCurrent ();
+    config = FcInitLoadConfig ();
     if (!config)
     {
        fprintf (stderr, "%s: Can't init font config library\n", argv[0]);