Fix a SIGSEGV on FcPatternGet* with NULL pattern
This commit is contained in:
parent
bdf1581e3d
commit
c758206e8c
|
@ -843,6 +843,8 @@ FcPatternObjectGet (const FcPattern *p, FcObject object, int id, FcValue *v)
|
||||||
FcPatternElt *e;
|
FcPatternElt *e;
|
||||||
FcValueListPtr l;
|
FcValueListPtr l;
|
||||||
|
|
||||||
|
if (!p)
|
||||||
|
return FcResultNoMatch;
|
||||||
e = FcPatternObjectFindElt (p, object);
|
e = FcPatternObjectFindElt (p, object);
|
||||||
if (!e)
|
if (!e)
|
||||||
return FcResultNoMatch;
|
return FcResultNoMatch;
|
||||||
|
|
Loading…
Reference in New Issue