[gegl] exp-combine: initialize stack structs to 0



commit 3289d05279ac26a9562ca92b2d0dbc156fd4b1b7
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Apr 21 16:26:49 2016 +0100

    exp-combine: initialize stack structs to 0

 operations/common/exp-combine.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/exp-combine.c b/operations/common/exp-combine.c
index 41bb301..2ca5c8a 100644
--- a/operations/common/exp-combine.c
+++ b/operations/common/exp-combine.c
@@ -338,7 +338,7 @@ gegl_expcombine_apply_debevec  (gfloat              *hdr,
       gfloat  ti_max  = G_MINFLOAT,
               ti_min  = G_MAXFLOAT;
       gfloat  average;
-      guint   white_step[3], black_step[3];
+      guint   white_step[3] = {0,0,0}, black_step[3] = {0,0,0};
 
       /* all exposures for each pixel */
       for (i = 0; i < num_imgs; ++i)


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