Avoid a crash in FcPatternHash with ranges

When a cached pattern contains a range,
FcPatternHash will crash.

Fixes #254.
This commit is contained in:
Matthias Clasen 2020-08-23 10:45:26 -04:00
parent 9133e799b5
commit de73d6c51a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}