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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
diff --git a/ChangeLog b/ChangeLog
index becfa00..1dc61e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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'.
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index f7d4d0c..a7a18f2 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -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
diff --git a/src/type1/t1driver.c b/src/type1/t1driver.c
index 9391a39..e35d7b1 100644
--- a/src/type1/t1driver.c
+++ b/src/type1/t1driver.c
@@ -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 );