[gimp] app: properly initialize more variables Found by Coverity
- From: Clayton Walker <claytonw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: properly initialize more variables Found by Coverity
- Date: Sun, 23 Jun 2013 11:15:15 +0000 (UTC)
commit 03f559923ba6ab93f7d220043a50b3e4be8b2be8
Author: Clayton Walker <clayton m walker gmail com>
Date: Sun Jun 23 13:10:44 2013 +0200
app: properly initialize more variables
Found by Coverity
app/core/gimpdrawable-blend.c | 4 ++--
app/vectors/gimpbezierstroke.c | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c
index af2d8f4..1e377e1 100644
--- a/app/core/gimpdrawable-blend.c
+++ b/app/core/gimpdrawable-blend.c
@@ -1007,7 +1007,7 @@ gradient_fill_region (GimpImage *image,
for (y = roi->y; y < endy; y++)
for (x = roi->x; x < endx; x++)
{
- GimpRGB color;
+ GimpRGB color = { 0.0, 0.0, 0.0, 1.0 };
gint i = g_rand_int (dither_rand);
gradient_render_pixel (x, y, &color, &rbd);
@@ -1025,7 +1025,7 @@ gradient_fill_region (GimpImage *image,
for (y = roi->y; y < endy; y++)
for (x = roi->x; x < endx; x++)
{
- GimpRGB color;
+ GimpRGB color = { 0.0, 0.0, 0.0, 1.0 };
gradient_render_pixel (x, y, &color, &rbd);
diff --git a/app/vectors/gimpbezierstroke.c b/app/vectors/gimpbezierstroke.c
index 4385d6a..f5caffa 100644
--- a/app/vectors/gimpbezierstroke.c
+++ b/app/vectors/gimpbezierstroke.c
@@ -568,6 +568,8 @@ gimp_bezier_stroke_nearest_point_get (const GimpStroke *stroke,
count = 0;
min_dist = -1;
+ pos = 0;
+ point = GIMP_COORDS_DEFAULT_VALUES;
for (anchorlist = stroke->anchors;
GIMP_ANCHOR (anchorlist->data)->type != GIMP_ANCHOR_ANCHOR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]