[gegl] gegl: Remove compiler warning about copying uninitialized memory



commit b8163cc74749e1c476cbff550aa82412d9fe7504
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Aug 4 20:09:27 2009 +0200

    gegl: Remove compiler warning about copying uninitialized memory

 gegl/property-types/gegl-curve.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gegl/property-types/gegl-curve.c b/gegl/property-types/gegl-curve.c
index 71e7057..68a4b57 100644
--- a/gegl/property-types/gegl-curve.c
+++ b/gegl/property-types/gegl-curve.c
@@ -222,8 +222,9 @@ gegl_curve_set_point (GeglCurve      *self,
   GeglCurvePrivate *priv  = GEGL_CURVE_GET_PRIVATE (GEGL_CURVE (self));
   GeglCurvePoint    point;
 
-  point.x = x;
-  point.y = y;
+  point.x  = x;
+  point.y  = y;
+  point.y2 = 1.0;
 
   g_assert (index < priv->points->len);
   g_array_index (priv->points, GeglCurvePoint, index) = point;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]