* src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.

This commit is contained in:
Werner Lemberg 2006-11-26 22:28:13 +00:00
parent 1bd6c47260
commit 8636c29ae8
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-11-26 Pierre Hanser <hanser@club-internet.fr>
* src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
2006-11-25 David Turner <david@freetype.org>
* src/autofit/afhints.c: add stubs to link the "ftgrid" test program

View File

@ -283,7 +283,8 @@
/* be worth to do more checks for a few special cases. */
for ( nn = 0; trick_names[nn] != NULL; nn++ )
{
if ( ft_strcmp( ttface->family_name, trick_names[nn] ) == 0 )
if ( ttface->family &&
ft_strcmp( ttface->family_name, trick_names[nn] ) == 0 )
{
unpatented_hinting = 1;
break;