Fix a crash when running with FC_DEBUG=256
Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/167
This commit is contained in:
parent
83840fd1fa
commit
322131f433
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue