Commit 32e44e1b authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: fix uninitialized variable calibrationLookupFlag

parent a93d1b69
......@@ -192,7 +192,7 @@ struct OTBMetadata_EXPORT SARCalib
using ArrayType = std::array<int, 2>;
using LookupDataType = SarCalibrationLookupData;
bool calibrationLookupFlag;
bool calibrationLookupFlag = false;
double rescalingFactor;
MetaData::Time calibrationStartTime;
MetaData::Time calibrationStopTime;
......
......@@ -1168,6 +1168,8 @@ void TerraSarImageMetadataInterface::ParseGdal(ImageMetadata &imd)
SARCalib sarCalib;
LoadRadiometricCalibrationData(sarCalib, MainXMLFileMetadataSupplier, imd, polarization);
sarCalib.calibrationLookupFlag = false;
imd.Add(MDGeom::SARCalib, sarCalib);
// Open the georef file containing GCPs
......@@ -1224,6 +1226,8 @@ void TerraSarImageMetadataInterface::ParseGeom(ImageMetadata & imd)
SARCalib sarCalib;
LoadRadiometricCalibrationData(sarCalib, *m_MetadataSupplierInterface, imd);
sarCalib.calibrationLookupFlag = false;
imd.Add(MDGeom::SARCalib, sarCalib);
}
......
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