Fix case where level 3 data value could be uninitialized

This commit is contained in:
Dan Paulat 2024-01-06 09:47:35 -06:00
parent a77b6bea9d
commit 0c8d1aeb80

View file

@ -975,7 +975,7 @@ ProductDescriptionBlock::data_value(std::uint8_t level) const
return std::nullopt;
}
float f;
std::optional<float> f = std::nullopt;
// Different products use different scale/offset formulas
if (numberOfLevels > 16 ||