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;
|
||||
FcValueListPtr l;
|
||||
|
||||
if (!p)
|
||||
return FcResultNoMatch;
|
||||
e = FcPatternObjectFindElt (p, object);
|
||||
if (!e)
|
||||
return FcResultNoMatch;
|
||||
|
|
Loading…
Reference in New Issue