Commit 0d47cfab authored by Behdad Esfahbod's avatar Behdad Esfahbod

Bug 28958 - lang=en matches other langs

Patch from Akira TAGOH.
parent 1e7a2a4f
......@@ -505,6 +505,7 @@ FcLangSetCompare (const FcLangSet *lsa, const FcLangSet *lsb)
/*
* Used in computing values -- mustn't allocate any storage
* XXX Not thread-safe
*/
FcLangSet *
FcLangSetPromote (const FcChar8 *lang)
......@@ -515,6 +516,7 @@ FcLangSetPromote (const FcChar8 *lang)
int id;
memset (ls.map, '\0', sizeof (ls.map));
ls.map_size = NUM_LANG_SET_MAP;
ls.extra = 0;
id = FcLangSetIndex (lang);
if (id > 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