Fix a (harmless) Valgrind hit.
[movit] / gamma_compression_effect.cpp
index 945267ceb5225ecebd616262dd14399ad1e7a4c2..0f0a2e4c73e031f930a243b9f661de1d830c7702 100644 (file)
@@ -1,4 +1,5 @@
 #include <math.h>
+#include <string.h>
 #include <assert.h>
 
 #include "gamma_compression_effect.h"
@@ -8,6 +9,7 @@ GammaCompressionEffect::GammaCompressionEffect()
        : destination_curve(GAMMA_LINEAR)
 {
        register_int("destination_curve", (int *)&destination_curve);
+       memset(compression_curve, 0, sizeof(compression_curve));
        register_1d_texture("compression_curve_tex", compression_curve, COMPRESSION_CURVE_SIZE);
 }