Commit a91710a2 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

WRG: solarIrradiance may be used uninitialized in this function

parent 900123b6
......@@ -77,11 +77,10 @@ ReduceSpectralResponse<TSpectralResponse , TRSR>
ValuePrecisionType res = itk::NumericTraits<ValuePrecisionType>::ZeroValue();
typename InputRSRType::SpectralResponseType* solarIrradiance;
typename InputRSRType::SpectralResponseType* solarIrradiance = this->m_InputSatRSR->GetSolarIrradiance();
solarIrradiance = this->m_InputSatRSR->GetSolarIrradiance();
if (solarIrradiance == 0)
itkExceptionMacro(<<"Error occurs getting solar irradiance. Solar irradiance is mandatory using the reflectance mode.");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment