Commit b34c9b49cc2a88161e150c131950dc007474e69e

Werner Lemberg 2009-06-20T06:32:23

aflatin.c: Fix compiler warning.

diff --git a/ChangeLog b/ChangeLog
index 26ef376..0059a12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-06-20  Werner Lemberg  <wl@gnu.org>
 
+	* src/autofit/aflatin.c (af_latin_metrics_check_digits): Fix
+	compiler warning.
+
+2009-06-20  Werner Lemberg  <wl@gnu.org>
+
 	* builds/compiler/gcc.mk (CFLAGS): Use -O3, not -O6.
 
 2009-06-19  Werner Lemberg  <wl@gnu.org>
diff --git a/src/autofit/aflatin.c b/src/autofit/aflatin.c
index 148eb1e..aae6e2e 100644
--- a/src/autofit/aflatin.c
+++ b/src/autofit/aflatin.c
@@ -409,7 +409,7 @@
     for ( i = 0x30; i <= 0x39; i++ )
     {
       FT_UInt   glyph_index;
-      FT_Fixed  advance, old_advance;
+      FT_Fixed  advance, old_advance = 0;
 
 
       glyph_index = FT_Get_Char_Index( face, i );