Avoid a crash in FcPatternHash with ranges
When a cached pattern contains a range, FcPatternHash will crash. Fixes #254.
This commit is contained in:
parent
9133e799b5
commit
de73d6c51a
|
@ -338,7 +338,7 @@ FcValueHash (const FcValue *v)
|
|||
case FcTypeLangSet:
|
||||
return FcLangSetHash (FcValueLangSet(v));
|
||||
case FcTypeRange:
|
||||
return FcRangeHash (v->u.r);
|
||||
return FcRangeHash (FcValueRange (v));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue