Fix a crash when FcPattern is set to null on FcFontSetList() and FcFontList()
This commit is contained in:
parent
643f8088f0
commit
8a174b6c51
|
@ -212,6 +212,8 @@ FcListPatternMatchAny (const FcPattern *p,
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!p)
|
||||||
|
return FcFalse;
|
||||||
for (i = 0; i < p->num; i++)
|
for (i = 0; i < p->num; i++)
|
||||||
{
|
{
|
||||||
FcPatternElt *pe = &FcPatternElts(p)[i];
|
FcPatternElt *pe = &FcPatternElts(p)[i];
|
||||||
|
|
Loading…
Reference in New Issue