Cross Reference: 7058808.patch
xref
: /
solaris-x11-s11
/
open-src
/
lib
/
fontconfig
/
7058808.patch
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1160
N/A
CR 7058808 fc-match core dumps when no fonts are installed. FcFonSort interface returns Null.
1160
N/A
1160
N/A
---
fc-match/fc-match.c
Wed Jun 29 15:00:37 2011
1160
N/A
+++
fc-match/fc-match.c
Wed Jun 29 15:04:43 2011
1160
N/A
@@ -174,6 +174,12 @@
1160
N/A
FcFontSet *font_patterns;
1160
N/A
int j;
1160
N/A
font_patterns = FcFontSort (0, pat, all ? FcFalse : FcTrue, 0, &result);
1160
N/A
+
1160
N/A
+ if (!font_patterns)
1160
N/A
+ {
1160
N/A
+ fprintf (stderr, "Can't find any matching font\n");
1160
N/A
+ return 1;
1160
N/A
+ }
1160
N/A
1160
N/A
for (j = 0; j < font_patterns->nfont; j++)
1160
N/A
{