summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-14 20:07:30 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-14 20:07:30 +0100
commitc76285d45747f1c22899861362875c9f2f13846f (patch)
tree5922d463ef204bd6ccd0935ad74688ca1eeaca3d
parentb5f9d6f38e1d4f8a65e5ae4db37b511f837c3c7a (diff)
Add necessary initialisation in test/mandelbrot
Detected by valgrind : ==16102== Conditional jump or move depends on uninitialised value(s) ==16102== at 0x449A10: Drawing_Area::idle() (mandelbrot.cxx:143)
-rw-r--r--test/mandelbrot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/mandelbrot.h b/test/mandelbrot.h
index b946232f5..ccae9db11 100644
--- a/test/mandelbrot.h
+++ b/test/mandelbrot.h
@@ -63,6 +63,7 @@ public:
scale = 4.0;
iterations = 1<<DEFAULT_ITERATIONS;
brightness = use_colors ? DEFAULT_BRIGHTNESS_COLOR : DEFAULT_BRIGHTNESS;
+ sx = sy = sw = sh = 0;
}
int idle();
};