Commit bfc20c76eb8da5a85ff4661a963b37e7b027ba1d

Werner Lemberg 2011-09-27T17:35:09

Fix Savannah bug #34189. * src/type1/t1load.c (T1_Open_Face): Initialize `face->len_buildchar'.

diff --git a/ChangeLog b/ChangeLog
index 3eb9dea..225a0de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-27  Simon Bünzli  zeniko@gmail.com
+
+	Fix Savannah bug #34189.
+
+	* src/type1/t1load.c (T1_Open_Face): Initialize
+	`face->len_buildchar'.
+
 2011-09-26  Werner Lemberg  <wl@gnu.org>
 
 	[cff] Dump SIDs while tracing.
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 38c74b2..1451fe5 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -896,7 +896,7 @@
   }
 
 
-#endif /* T1_CONFIG_OPTION_NO_MM_SUPPORT */
+#endif /* !T1_CONFIG_OPTION_NO_MM_SUPPORT */
 
 
 
@@ -2140,8 +2140,10 @@
         }
       }
     }
+    else
+      face->len_buildchar = 0;
 
-#endif /* T1_CONFIG_OPTION_NO_MM_SUPPORT */
+#endif /* !T1_CONFIG_OPTION_NO_MM_SUPPORT */
 
     /* now, propagate the subrs, charstrings, and glyphnames tables */
     /* to the Type1 data                                            */