Commit de73d6c5 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Avoid a crash in FcPatternHash with ranges

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

Fixes #254.
parent 9133e799
Pipeline #194393 passed with stage
in 5 minutes and 55 seconds
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment