Mercurial > mplayer.hg
changeset 27096:a2c8efd917ea
Check if the font set returned from FcFontSort in not NULL.
author | eugeni |
---|---|
date | Mon, 23 Jun 2008 14:46:55 +0000 |
parents | a0e00d065593 |
children | b140d2455139 |
files | libass/ass_fontconfig.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_fontconfig.c Mon Jun 23 14:46:52 2008 +0000 +++ b/libass/ass_fontconfig.c Mon Jun 23 14:46:55 2008 +0000 @@ -129,6 +129,8 @@ 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];