Add some variable initializations.

Reported by Richard COOK <rscook@unicode.org>.

* src/type1/t1driver.c (t1_ps_get_font_value): Initialize `val'.
* src/smooth/ftgrays.c (gray_render_conic): Initialize `levels'
earlier.
This commit is contained in:
Werner Lemberg 2011-12-10 23:16:04 +01:00
parent 2fb22d5649
commit 5cb356405e
3 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2011-12-10 Werner Lemberg <wl@gnu.org>
Add some variable initializations.
Reported by Richard COOK <rscook@unicode.org>.
* src/type1/t1driver.c (t1_ps_get_font_value): Initialize `val'.
* src/smooth/ftgrays.c (gray_render_conic): Initialize `levels'
earlier.
2011-12-08 Werner Lemberg <wl@gnu.org>
Fix serious scaling bug in `FT_Get_Advances'.

View File

@ -878,6 +878,8 @@ typedef ptrdiff_t FT_PtrDist;
FT_Vector* arc;
levels = ras.lev_stack;
arc = ras.bez_stack;
arc[0].x = UPSCALE( to->x );
arc[0].y = UPSCALE( to->y );
@ -916,7 +918,6 @@ typedef ptrdiff_t FT_PtrDist;
level++;
} while ( dx > ONE_PIXEL / 4 );
levels = ras.lev_stack;
levels[0] = level;
do

View File

@ -195,7 +195,7 @@
if ( idx < sizeof ( type1->font_matrix ) /
sizeof ( type1->font_matrix.xx ) )
{
FT_Fixed val;
FT_Fixed val = 0;
retval = sizeof ( val );
@ -225,7 +225,7 @@
if ( idx < sizeof ( type1->font_bbox ) /
sizeof ( type1->font_bbox.xMin ) )
{
FT_Fixed val;
FT_Fixed val = 0;
retval = sizeof ( val );