From 8bebaa74cc3628ec5729823645dc41ef3d93873b Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Sun, 27 Jun 2010 15:10:15 +0200 Subject: [PATCH] Fix valgrind warning. * src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize `result' array. --- ChangeLog | 7 +++++++ src/base/ftoutln.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) 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 )