--- trunk/src/math/SphericalHarmonic.cpp 2015/03/07 16:59:57 2070 +++ trunk/src/math/SphericalHarmonic.cpp 2015/03/07 21:41:51 2071 @@ -84,7 +84,7 @@ RealType SphericalHarmonic::LegendreP(int l,int m, Rea printf("LegendreP: m < 0: l = %d\tm = %d\tx = %lf\n", l, m, x); return std::numeric_limits :: quiet_NaN(); } else { - RealType temp1, temp2, temp3, temp4, temp5; + RealType temp1, temp2(0.0), temp3, temp4, temp5; temp3=1.0; if (m>0) {