Fix valgrind warning.

* src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
`result' array.
This commit is contained in:
Werner Lemberg 2010-06-27 15:10:15 +02:00
parent 4f7851e3d2
commit 8bebaa74cc
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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.

View File

@ -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 )