[gegl] fractal-explorer: Avoid a compiler warning by initializing tmpx and tmpy



commit 237fc607c0fe650c94a0897ca81397d18e3f2fd0
Author: Mukund Sivaraman <muks banu com>
Date:   Fri May 2 22:09:25 2014 +0530

    fractal-explorer: Avoid a compiler warning by initializing tmpx and tmpy

 operations/common/fractal-explorer.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/fractal-explorer.c b/operations/common/fractal-explorer.c
index f363b3a..971f423 100644
--- a/operations/common/fractal-explorer.c
+++ b/operations/common/fractal-explorer.c
@@ -228,12 +228,13 @@ process (GeglOperation       *operation,
       x = (pixelx + o->shiftx) / o->zoom;
       y = (pixely + o->shifty) / o->zoom;
 
-      if (o->fractaltype == GEGl_FRACTAL_EXPLORER_TYPE_MANDELBROT)
+      switch (o->fractaltype)
         {
+        case GEGl_FRACTAL_EXPLORER_TYPE_MANDELBROT:
           a = b = 0;
-        }
-      else
-        {
+          tmpx = tmpy = 0;
+          break;
+        default:
           tmpx = a = x;
           tmpy = b = y;
         }


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