Commit 48ef1e2f authored by Felix Paul Kühne's avatar Felix Paul Kühne

freetype: fixed crash when looking for an empty string as font name

parent 16219780
......@@ -722,6 +722,9 @@ static char* MacLegacy_Select( filter_t *p_filter, const char* psz_fontname,
*i_idx = 0;
if( psz_fontname == NULL )
return NULL;
msg_Dbg( p_filter, "looking for %s", psz_fontname );
cf_fontName = CFStringCreateWithCString( kCFAllocatorDefault, psz_fontname, kCFStringEncodingUTF8 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment