[autofit] Fix variable initializations.

* src/autofit/afhints.c (af_glyph_hints_reload): Assign default
values to `in_dir' and `out_dir' for all points.
This commit is contained in:
Werner Lemberg 2014-05-11 12:44:00 +02:00
parent 07e7b8affe
commit faa21472b7
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2014-05-11 Werner Lemberg <wl@gnu.org>
[autofit] Fix variable initializations.
* src/autofit/afhints.c (af_glyph_hints_reload): Assign default
values to `in_dir' and `out_dir' for all points.
2014-05-11 Werner Lemberg <wl@gnu.org>
[autofit] Fix crash with font `CabinSketch-Bold.ttf'.

View File

@ -651,6 +651,9 @@
for ( point = points; point < point_limit; point++, vec++, tag++ )
{
point->in_dir = (FT_Char)AF_DIR_NONE;
point->out_dir = (FT_Char)AF_DIR_NONE;
point->fx = (FT_Short)vec->x;
point->fy = (FT_Short)vec->y;
point->ox = point->x = FT_MulFix( vec->x, x_scale ) + x_delta;