Fix another harmless Valgrind hit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Dec 2013 22:58:28 +0000 (23:58 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 22 Dec 2013 22:58:28 +0000 (23:58 +0100)
gamma_expansion_effect.cpp

index d4e532f..4574567 100644 (file)
@@ -8,6 +8,7 @@ GammaExpansionEffect::GammaExpansionEffect()
        : source_curve(GAMMA_LINEAR)
 {
        register_int("source_curve", (int *)&source_curve);
+       memset(expansion_curve, 0, sizeof(expansion_curve));
        register_1d_texture("expansion_curve_tex", expansion_curve, EXPANSION_CURVE_SIZE);
 }