Don't use blanks for fc-query
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 4 Jan 2013 02:31:22 +0000 (20:31 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 4 Jan 2013 02:34:41 +0000 (20:34 -0600)
fc-query is supposed to be config-independent.

fc-query/fc-query.c

index 2ed18a2..50bef40 100644 (file)
@@ -142,8 +142,6 @@ main (int argc, char **argv)
        return 1;
     }
 
-    blanks = FcConfigGetBlanks (NULL);
-
     for (; i < argc; i++)
     {
        int index;
@@ -154,7 +152,7 @@ main (int argc, char **argv)
        do {
            FcPattern *pat;
 
-           pat = FcFreeTypeQuery ((FcChar8 *) argv[i], index, blanks, &count);
+           pat = FcFreeTypeQuery ((FcChar8 *) argv[i], index, NULL, &count);
            if (pat)
            {
                if (format)