summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2019-07-02 04:59:52 +0000
committerAkira TAGOH <akira@tagoh.org>2019-07-02 04:59:52 +0000
commit322131f4330f972820fd903959999af9360120c0 (patch)
treecfc66d014b89e648c5bcc344151f78ee2bda4249
parent83840fd1faad3f28760f7cf3f0467d15afa71132 (diff)
Fix a crash when running with FC_DEBUG=256
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/167
-rw-r--r--src/fcfreetype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c
index d528544..2f86d8a 100644
--- a/src/fcfreetype.c
+++ b/src/fcfreetype.c
@@ -1546,7 +1546,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
lang = FcSfntNameLanguage (&sname);
if (FcDebug () & FC_DBG_SCANV)
- printf ("%s\n", utf8);
+ printf ("%s\n", utf8 ? (char *)utf8 : "(null)");
if (!utf8)
continue;