Fix a crash when running with FC_DEBUG=256

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/167
This commit is contained in:
Akira TAGOH 2019-07-02 04:59:52 +00:00
parent 83840fd1fa
commit 322131f433
1 changed files with 1 additions and 1 deletions

View File

@ -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;