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:
parent
b5f9d6f38e
commit
c76285d457
@ -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();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user