diff options
author | Akira TAGOH <akira@tagoh.org> | 2013-09-24 11:14:57 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-09-24 11:14:57 +0900 |
commit | 8a174b6c51581df6ffd6a5da056949c6c79337cf (patch) | |
tree | 1a99b5b436c23b040a06da317b9c25aabb245f1a /src/fclist.c | |
parent | 643f8088f0d51107e58d142df47124efec6afab1 (diff) | |
download | fontconfig-8a174b6c51581df6ffd6a5da056949c6c79337cf.tar.gz |
Fix a crash when FcPattern is set to null on FcFontSetList() and FcFontList()
Diffstat (limited to 'src/fclist.c')
-rw-r--r-- | src/fclist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fclist.c b/src/fclist.c index c56e24c..a365098 100644 --- a/src/fclist.c +++ b/src/fclist.c @@ -212,6 +212,8 @@ FcListPatternMatchAny (const FcPattern *p, { int i; + if (!p) + return FcFalse; for (i = 0; i < p->num; i++) { FcPatternElt *pe = &FcPatternElts(p)[i]; |