Commit 8bebaa74cc3628ec5729823645dc41ef3d93873b

Werner Lemberg 2010-06-27T15:10:15

Fix valgrind warning. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize `result' array.

diff --git a/ChangeLog b/ChangeLog
index ff4b71d..c36a909 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-06-27  Werner Lemberg  <wl@gnu.org>
 
+	Fix valgrind warning.
+
+	* src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
+	`result' array.
+
+2010-06-27  Werner Lemberg  <wl@gnu.org>
+
 	[cff] Fix memory leak.
 
 	* src/cff/cffgload.c (cff_operator_seac): Free charstrings even in
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index b69df84..356b156 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -990,7 +990,8 @@
 
     int             i;
     FT_Pos          ray_y[3];
-    FT_Orientation  result[3];
+    FT_Orientation  result[3] =
+      { FT_ORIENTATION_NONE, FT_ORIENTATION_NONE, FT_ORIENTATION_NONE };
 
 
     if ( !outline || outline->n_points <= 0 )