summaryrefslogtreecommitdiff
path: root/src/fclang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fclang.c')
-rw-r--r--src/fclang.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fclang.c b/src/fclang.c
index bbdce2c9..107addb5 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 ||