diff --git a/ChangeLog b/ChangeLog index ff4b71d85..c36a90943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-06-27 Werner Lemberg + + Fix valgrind warning. + + * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize + `result' array. + 2010-06-27 Werner Lemberg [cff] Fix memory leak. diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c index b69df84c0..356b15611 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 )