1160N/ACR 7058808 fc-match core dumps when no fonts are installed. FcFonSort interface returns Null.
1160N/A
1160N/A--- fc-match/fc-match.c Wed Jun 29 15:00:37 2011
1160N/A+++ fc-match/fc-match.c Wed Jun 29 15:04:43 2011
1160N/A@@ -174,6 +174,12 @@
1160N/A FcFontSet *font_patterns;
1160N/A int j;
1160N/A font_patterns = FcFontSort (0, pat, all ? FcFalse : FcTrue, 0, &result);
1160N/A+
1160N/A+ if (!font_patterns)
1160N/A+ {
1160N/A+ fprintf (stderr, "Can't find any matching font\n");
1160N/A+ return 1;
1160N/A+ }
1160N/A
1160N/A for (j = 0; j < font_patterns->nfont; j++)
1160N/A {