summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2010-12-07 18:48:56 -0500
committerBehdad Esfahbod <behdad@behdad.org>2010-12-07 18:48:56 -0500
commit0d47cfabd82cd9c02ec5711383f06599b0450ac0 (patch)
tree9cf0a3572b35bd483498abe3fee126cfc023e547
parent1e7a2a4f6cd05bfa8b15f88c2f9ca10ad97fc8ac (diff)
Bug 28958 - lang=en matches other langs
Patch from Akira TAGOH.
-rw-r--r--src/fclang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fclang.c b/src/fclang.c
index f3b825a8..1c783280 100644
--- a/src/fclang.c
+++ b/src/fclang.c
@@ -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)