Fix compiler warning. Reported by Jeremy Manson <jeremy.manson@gmail.com>. * src/truetype/ttgload.c (load_truetype_glyph): Initialize `error'.
diff --git a/ChangeLog b/ChangeLog
index 0843784..4ee05ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-11-08 Werner Lemberg <wl@gnu.org>
+
+ Fix compiler warning.
+ Reported by Jeremy Manson <jeremy.manson@gmail.com>.
+
+ * src/truetype/ttgload.c (load_truetype_glyph): Initialize `error'.
+
2009-11-04 Werner Lemberg <wl@gnu.org>
Remove compiler warning.
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 0b7f2c7..aa3f040 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -1186,7 +1186,7 @@
FT_UInt recurse_count,
FT_Bool header_only )
{
- FT_Error error;
+ FT_Error error = TT_Err_Ok;
FT_Fixed x_scale, y_scale;
FT_ULong offset;
TT_Face face = (TT_Face)loader->face;