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'.
diff --git a/ChangeLog b/ChangeLog
index 58b52e4..6e90f64 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* src/base/ftsynth.c (FT_GlyphSlot_Oblique): Fix shear angle.
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index 48ccf4a..453d9da 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2055,11 +2055,12 @@
}
else
{
+ error = FT_Err_Missing_Module;
+
/* check each font driver for an appropriate format */
cur = library->modules;
limit = cur + library->num_modules;
-
for ( ; cur < limit; cur++ )
{
/* not all modules are font drivers, so check... */