summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2017-08-22 20:30:34 +0900
committerAkira TAGOH <akira@tagoh.org>2017-08-22 20:30:34 +0900
commitee609da3582f46151dd86b30d473833067e83c39 (patch)
tree0e7f9748421ae97917def3224e5e191566948b1c
parent5efa1137b41e20bfaef7346f79079f38add25572 (diff)
downloadfontconfig-ee609da3582f46151dd86b30d473833067e83c39.tar.gz
Fix to work the debugging option on fc-validate
-rw-r--r--src/fclang.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fclang.c b/src/fclang.c
index bbdce2c..107addb 100644
--- a/src/fclang.c
+++ b/src/fclang.c
@@ -188,6 +188,9 @@ FcLangNormalize (const FcChar8 *lang)
if (!lang || !*lang)
return NULL;
+ /* might be called without initialization */
+ FcInitDebug ();
+
if (FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C") == 0 ||
FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.UTF-8") == 0 ||
FcStrCmpIgnoreCase (lang, (const FcChar8 *)"C.utf8") == 0 ||