Check if the font set returned from FcFontSort in not NULL.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27128 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2008-06-23 14:46:55 +00:00
parent a2bd32e4de
commit 88a0442765
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold
goto error;
fset = FcFontSort(priv->config, pat, FcTrue, NULL, &result);
if (!fset)
goto error;
for (curf = 0; curf < fset->nfont; ++curf) {
FcPattern* curp = fset->fonts[curf];