mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 19:10:24 +08:00
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)
This commit is contained in:
@@ -63,6 +63,7 @@ public:
|
|||||||
scale = 4.0;
|
scale = 4.0;
|
||||||
iterations = 1<<DEFAULT_ITERATIONS;
|
iterations = 1<<DEFAULT_ITERATIONS;
|
||||||
brightness = use_colors ? DEFAULT_BRIGHTNESS_COLOR : DEFAULT_BRIGHTNESS;
|
brightness = use_colors ? DEFAULT_BRIGHTNESS_COLOR : DEFAULT_BRIGHTNESS;
|
||||||
|
sx = sy = sw = sh = 0;
|
||||||
}
|
}
|
||||||
int idle();
|
int idle();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user