Fix Savannah bug #37178.

* src/base/ftobjs.c (FT_Open_Face): Initialize `error' with
`FT_Err_Missing_Module' before loop to indicate `no valid drivers'.
This commit is contained in:
Werner Lemberg 2012-08-26 14:00:11 +02:00
parent 68fe6a9afa
commit b355b5693a
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2012-08-26 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #37178.
* src/base/ftobjs.c (FT_Open_Face): Initialize `error' with
`FT_Err_Missing_Module' before loop to indicate `no valid drivers'.
2012-08-17 Werner Lemberg <wl@gnu.org> 2012-08-17 Werner Lemberg <wl@gnu.org>
* src/base/ftsynth.c (FT_GlyphSlot_Oblique): Fix shear angle. * src/base/ftsynth.c (FT_GlyphSlot_Oblique): Fix shear angle.

View File

@ -2055,11 +2055,12 @@
} }
else else
{ {
error = FT_Err_Missing_Module;
/* check each font driver for an appropriate format */ /* check each font driver for an appropriate format */
cur = library->modules; cur = library->modules;
limit = cur + library->num_modules; limit = cur + library->num_modules;
for ( ; cur < limit; cur++ ) for ( ; cur < limit; cur++ )
{ {
/* not all modules are font drivers, so check... */ /* not all modules are font drivers, so check... */