Mercurial > mplayer.hg
changeset 29325:21f61d4d5611
Add a missing check for a NULL return value.
author | eugeni |
---|---|
date | Tue, 16 Jun 2009 17:58:12 +0000 |
parents | cdd8bb71ea0f |
children | dd9ae81f8f8f |
files | libass/ass_font.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_font.c Tue Jun 16 13:32:51 2009 +0000 +++ b/libass/ass_font.c Tue Jun 16 17:58:12 2009 +0000 @@ -127,6 +127,8 @@ path = fontconfig_select(fc_priv, font->desc.family, font->desc.treat_family_as_pattern, font->desc.bold, font->desc.italic, &index, ch); + if (!path) + return -1; mem_idx = find_font(font->library, path); if (mem_idx >= 0) {