Defaulting <cachedir> to LOCAL_APPDATA_FONTCONFIG_CACHE for Win32 build
[platform/upstream/fontconfig.git] / fc-scan / fc-scan.c
index 5f9a466..5638b51 100644 (file)
@@ -9,9 +9,9 @@
  * documentation for any purpose is hereby granted without fee, provided that
  * the above copyright notice appear in all copies and that both that
  * copyright notice and this permission notice appear in supporting
- * documentation, and that the name of Keith Packard not be used in
+ * documentation, and that the name of the author(s) not be used in
  * advertising or publicity pertaining to distribution of the software without
- * specific, written prior permission.  Keith Packard makes no
+ * specific, written prior permission.  The authors make no
  * representations about the suitability of this software for any purpose.  It
  * is provided "as is" without express or implied warranty.
  *
@@ -126,12 +126,6 @@ main (int argc, char **argv)
     if (i == argc)
        usage (argv[0], 1);
 
-    if (!FcInit ())
-    {
-       fprintf (stderr, "Can't init font config library\n");
-       return 1;
-    }
-
     fs = FcFontSetCreate ();
 
     for (; i < argc; i++)
@@ -168,7 +162,7 @@ main (int argc, char **argv)
            if (s)
            {
                printf ("%s", s);
-               free (s);
+               FcStrFree (s);
            }
        }
        else