[MPlayer-cvslog] r29367 - trunk/libass/ass_font.c
eugeni
subversion at mplayerhq.hu
Tue Jun 16 19:58:13 CEST 2009
Author: eugeni
Date: Tue Jun 16 19:58:12 2009
New Revision: 29367
Log:
Add a missing check for a NULL return value.
Modified:
trunk/libass/ass_font.c
Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c Tue Jun 16 15:32:51 2009 (r29366)
+++ trunk/libass/ass_font.c Tue Jun 16 19:58:12 2009 (r29367)
@@ -127,6 +127,8 @@ static int add_face(void* fc_priv, ass_f
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) {
More information about the MPlayer-cvslog
mailing list