Skip to content

Commit

Permalink
Fix case where level 3 data value could be uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Jan 6, 2024
1 parent a77b6be commit 0c8d1ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 0c8d1ae

Please sign in to comment.