ref: 8bebaa74cc3628ec5729823645dc41ef3d93873b
parent: 4f7851e3d24ccbddcfeda28357d00517b5dec022
author: Werner Lemberg <[email protected]>
date: Sun Jun 27 11:10:15 EDT 2010
Fix valgrind warning. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize `result' array.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2010-06-27 Werner Lemberg <[email protected]>
+ Fix valgrind warning.
+
+ * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
+ `result' array.
+
+2010-06-27 Werner Lemberg <[email protected]>
+
[cff] Fix memory leak.
* src/cff/cffgload.c (cff_operator_seac): Free charstrings even in
--- 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 )