mirror of https://github.com/mpv-player/mpv
Add a missing check for a NULL return value.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29367 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
811779d337
commit
ed5cac57c7
|
@ -127,6 +127,8 @@ static int add_face(void* fc_priv, ass_font_t* font, uint32_t ch)
|
|||
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue